What is the difference between Microsoft.AspNet.WebApi.OData and Microsoft.Data.OData and Microsoft.AspNet.OData?

前端 未结 1 1040
悲&欢浪女
悲&欢浪女 2021-02-12 23:27

I am creating a RESTful service using Web API and Entity Framework with OData endpoints. The Microsoft.AspNet.WebApi.OData and Microsoft.Data.OData and Microsoft.AspNet.OData pa

相关标签:
1条回答
  • 2021-02-13 00:18

    Microsoft.AspNet.OData is the one you'll most likely want to use for a new project. It sets up Web API to use the OData 4 protocol.

    Microsoft.AspNet.WebApi.OData is the older package for OData v1-3. It has a dependency on some of the core OData pieces from Microsoft.Data.OData, which is the "ODataLib" package for OData v1-3. (The OData v4 version of this is Microsoft.OData.Core, which is a dependency of Microsoft.AspNet.OData.)

    0 讨论(0)
提交回复
热议问题