OData Server Driven Paging

Topics: Web Api
Nov 2, 2011 at 5:06 AM

If I turn on IQueryable for my collections returned from my Web Api, how do I turn on server driven paging?

In ADO.NET Data Services I would have done something like:

config.SetResourceSetPageSize("Customer", 25);

See here: http://blogs.msdn.com/b/astoriateam/archive/2009/03/19/ado-net-data-services-v1-5-ctp1-server-driven-paging.aspx

Basically, I just want to know how to place default limits on the results in case a consuming client doesn't specify any paging directives.

Thanks in advance!