Difference between Microsoft.OData.Core and Microsoft.Data.OData

后端 未结 1 1918
执笔经年
执笔经年 2020-12-19 07:22

I am working on Web Api with OData enabled. I started working by referring to (only the relevant dlls to the question are mentioned)

Microsoft.AspN         


        
相关标签:
1条回答
  • 2020-12-19 07:58

    1. About the namespace,


    Microsoft.Data.OData
    Microsoft.Data.Edm
    System.Spatial
    

    are the implementation of OData Version 3.0 Spec. The package name on Nuget end with OData v1-3. For example: ODataLib for OData v1-3

    While,

    Microsoft.OData.Core
    Microsoft.OData.Edm
    Microsoft.Spatial
    

    are the implementation of OData Version 4.0 Spec. The package name on Nuget don't contain version . For example: ODataLib

    2. About the case-insensitive


    Web API OData will support case-insensitive, unqualified function/action call and Enum prefix free in the 5.4 release.

    Here's a simple example you can refer to.

    The source codes are moved to: WebAPI OData on Github

    And you can get the binary from nightly build.

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