简体   繁体   中英

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). OData is a communication protocol supported by the WebApi infraesctructure. The OData's goal is to provide an uniform way to create CRUD (create, retrieve, update and delete) operations.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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