简体   繁体   English

WebApi(ApiController)与ASP.Net MVC中的OData(ODataController)

[英]WebApi (ApiController) vs OData (ODataController) in ASP.Net MVC

任何人都可以列出WebAPI和OData控制器之间的区别吗?

WebApi is an application type (maybe a framework) used to facilitate the applications intercommunications between different platforms (web, mobile, windows). WebApi是一种应用程序类型(可能是一个框架),用于促进不同平台(Web,移动,Windows)之间的应用程序相互通信。 OData is a communication protocol supported by the WebApi infraesctructure. OData是WebApi基础架构支持的通信协议。 The OData's goal is to provide an uniform way to create CRUD (create, retrieve, update and delete) operations. OData的目标是提供一种统一的方法来创建CRUD(创建,检索,更新和删除)操作。

In WebApi you are kinda limited to the HTTP verbs (GET, PUT, DELETE, POST) and the OData (ODataController) adds new endpoints to facilitate the datasets manipulation. 在WebApi中,您只限于HTTP谓词(GET,PUT,DELETE,POST),OData(ODataController)添加新的端点以便于数据集操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM