LinqToQuerystring
LinqToQuerystring copied to clipboard
A lightweight subset of oData querystring conventions that works with any IQueryable
I have an OData query like this: http://localhost:41084/odata/Appointments?$expand=Person,Person/Address This will give the following exception: A specified Include path is not valid. The EntityType 'Site.Data.Appointment' does not declare a navigation property...
I looked at the profile in mongo db. The #inlinecount=allpages generated a query to the collection with no limit to get the count.
With the standard Web API OData offering you can do this: http://blogs.msdn.com/b/webdev/archive/2013/02/06/protect-your-queryable-api-with-validation-feature-in-asp-net-web-api-odata.aspx Linq to Querystring needs a similar feature. (also requested by @corneliuskopp)