While using Stored Procedure with Entity Framework if you get below error Message:
Image 1.
It simply means: Try explicitly enumerating the results by calling ToList().
Replace Your Code From
foreach (var item in query)
To #:
foreach (var item in query.ToList())

Rajeesh MenothPosted Aug 3, 2015, 6:29 AM
Good
Rahul Kumar SaxenaPosted Aug 3, 2015, 12:05 AM
Thanks Neeraj Kumar
Neeraj KumarPosted Aug 2, 2015, 3:55 PM
Nice