-1

We are planning to use oData as a entity standard for rest api layer. The data provided by web api are taken from various subsystems and layers of cache(memcache) involved. My fear is how the basic entity model without EF can support the oData implementation of pagination and filtering. I want the ability to restrict the retrieval record limit at the underlying susbsytem level not at the api controller level. Any pointers would be useful. Thanks.

4

1 回答 1

0

我写了一篇关于对非 IQueryable 后端进行 OData 查询的博文。我选择了 HQL 作为目标查询语言。http://blogs.msdn.com/b/webdev/archive/2013/02/25/translating-odata-queries-to-hql.aspx

这应该可以帮助您了解使用 Web API 支持 OData 查询是多么容易。

于 2013-04-22T17:42:33.547 回答