Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1005
IQueryable & [GridDataSourceAction]
posted

When working with Entity Framework and DBSets, I'm forced to use ToList() in my [GridDataSourceAction] decorated controller to stop infragistics.lob.js from giving me an Error 500.

This is impractical when working with large datasets, I don't want all the data returned to IIS from the database for querying,  I want the query passed right through to the database server.

Is there some reason why IQueryable direct on the dbContext's DBSet does not work?  Is it somehow related to the DBContext not be available when the grid needs it?