1. By the WebAPI framework. You return an IQueryable from your action method. The framework serializes it for you and sends it back to the client. It needs to execute the query to be able to serialize the resul.
2. In EF you would need OrderBy, you are right. But not all data access requires it, if it has an implicit ordering.
marcind
Contributor
3344 Points
609 Posts
Microsoft
Re: Iqueryable exposed directly
Feb 17, 2012 03:37 PM|LINK
1. By the WebAPI framework. You return an IQueryable from your action method. The framework serializes it for you and sends it back to the client. It needs to execute the query to be able to serialize the resul.
2. In EF you would need OrderBy, you are right. But not all data access requires it, if it has an implicit ordering.
ASP.NET Team
@marcind
Blog