Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Microsoft.Data.Edm vs Microsoft.OData.Edm: what is the difference? [duplicate]

Could someone please shed some light on the following question: there is Microsoft.Data.Edm namespace and Microsoft.OData.Edm namespace. Both have IEdmModel interface, EdmModelBase and EdmModel implementations, etc.

The most interesting thing is that ASP.NET Web API OData package uses Microsoft.Data.Edm.Library.EdmModel internally (instance of that class is returned by ODataModelBuilder, for example). So what is the point of Microsoft.OData.Edm namespace?

like image 474
Vladimir Panchenko Avatar asked Jan 29 '15 20:01

Vladimir Panchenko


1 Answers

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

I have answered the similar question at Difference between Microsoft.OData.Core and Microsoft.Data.OData. Thanks.

like image 134
Sam Xu Avatar answered Sep 30 '22 21:09

Sam Xu