Hello
in edmx table(entitys) and sp have there own cs files.
SO when you have sp in edmx and you get it on Model.tt then you used like this:-
public IEnumerable<GetAllCompanies_Result> GetAllCompanies()
{
using (var db = new PTMEntities())
{
return db.GetAllCompanies();
}
}
here you return type is
GetAllCompanies_Result
not company thats why you not return and get error.
I hope you problem will resolve