This question is locked. New answers and comments are not allowed.
Hi,
I am trying to use a stored procedure to get all items from the database with EF 4.1 . I would like to apply pagination and filtering. Trying to give the grid IEnumrable but the SP is returning an ObjectResult<Entity>. If I try to convert it to IEnumrable then i get error:
The result of a query cannot be enumerated more than once.
Now is there any other way to do this without putting the pagination into the Stored Procedure or should I do custom binding?
Thanks for your help.