Web API OData Inlinecount not working
问题 I am using the out of the box ValuesController in a ASP.NET Web API application public class ValuesController : ApiController { // GET api/values [Queryable(PageSize = 1)] public IQueryable<string> Get() { return new string[] { "value1", "value2", "value3", "value4", "value5" }.AsQueryable(); } } When I get http://localhost/api/values?$inlinecount=allpages This is the response <ArrayOfString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">