I have an OData Service setup using WCF Data Services (v2) that is hosted on the server. In the client applications we are creating, we are wondering if there is any way we can programmatically set the paging size?
For example, this works if I set it in the .svc:
public static void InitializeService(ODataServiceConfiguration serviceConfig)
{
serviceConfig.SetServiceOperationAccessRule("*", ServiceOperationRights.All);
serviceConfig.SetEntitySetAccessRule("*", EntitySetRights.All);
// *** I would like to set the following in my client code
serviceConfig.SetEntitySetPageSize("Employees", 100);
...
Any advice will be appreciated.