OData pagination with WebApi ( $inlinecount )

前端 未结 3 1983
情话喂你
情话喂你 2021-01-02 06:58

I am using OData to paginate a long list of items returned from a web api call. I can filter the data via the url with the start and end index.

The question I have i

3条回答
  •  感情败类
    2021-01-02 07:09

    Try this approach: http://www.strathweb.com/2012/08/supporting-odata-inlinecount-with-the-new-web-api-odata-preview-package/

    It uses the latest Web API OData package.

    Until the finalized Web API OData package is shipped (sometime this fall, should be around in November), when the $inlinecount is supported out of the box, this solution is likely the best bet.

提交回复
热议问题