Hi there,
To reproduce the issue simply add [Queryable] attribute to an ApiController and call it with an OData uri:
out of my hat
Code:
public class CampaignController : ApiController
{
// GET /api/campaign
[Queryable]
public IQueryable<Campaign> Get()
{
var Campaigns = new Campaign[]
{
new Campaign { Year = 2009 },
new Campaign { Year = 2010 },
new Campaign { Year = 2011 },
new Campaign { Year = 2012 },
};
return Campaigns.AsQueryable();
}
...
with fiddler or something similar call it with an OData uri such as
Code:
http://localhost:3122/api/Campaign?$skip=1&$top=2
or
http://localhost:3122/api/Campaign?$filter=Year%20eq%202010
Thank you,
--
dante