[英]Aren't Collection or arrays used in Web API odata models?
My experiment Expanding collections using Web Api OData controller triggered me to think about my design. 我的实验使用Web Api OData控制器扩展收藏集引发了我对设计的思考。
I am wondering am I the only one using collection in a web api model because I dont find many examples, etc on any forums of such kind. 我想知道我是唯一一个在Web api模型中使用集合的人,因为我在任何此类论坛上都找不到很多示例等。
Please take a look at this sample http://aspnet.codeplex.com/SourceControl/latest#Samples/WebApi/OData/v4/ODataQueryLimitationsSample/ . 请查看此示例http://aspnet.codeplex.com/SourceControl/latest#Samples/WebApi/OData/v4/ODataQueryLimitationsSample/ 。 It uses collections: Customer.Orders. 它使用以下集合:Customer.Orders。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.