本文介绍了使用组合键的WebAPI EntitySetController的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

出色的样品code:),我presume有很多缺点(这我还没有完全揭开)...有没有人使用创建的好处的例子EntitySetController?

However it is using ODataController (as one of the unanswered discussions on the sample code mentions) which I presume has many downsides (which I am yet to fully uncover)... has anyone created an example using the benefits of EntitySetController?

推荐答案

今后推荐的方法是直接从 ODataController 派生。的Visual Studio 2013提供了脚手架创建基于OData的ODataController服务。这已被发现是比从EntitySetController导出更加灵活模型。你得到了什么是你的行动做了完全控制。

Going forward the recommended approach is to directly derive from ODataController. Visual Studio 2013 provides scaffolding for creating OData services based on ODataController. This has been found to be a much more flexible model than deriving from EntitySetController. You get complete control over what is done in your actions.

这篇关于使用组合键的WebAPI EntitySetController的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-18 16:06