I had an error and none of these solutions worked (I already used System.Data.Entity.Core.Objects , it was also in context.tt , etc.).
In the end, I realized that the problem lies between the keyboard and the chair. The stored procedure completed with select, but I tried:
MyStoredProc_Result r = dbcontext.MyStoredPoc();
Instead
MyStoredProc_Result r = dbcontext.MyStoredPoc().FirstOrDefault();
source share