Using DbGeography Tyes with Entity Framework 7 and vNext

I am creating an application that will use spatial data with vNext and EF7. Earlier with the current version of asp.net and EF6, I used System.Data.Entity.Spatial to use DbGeography, however now this namespace is not available.

I currently have the following nuget packages in the project.json file:

  • "EntityFramework.Commands": "7.0.0-rc1-final"
  • "EntityFramework.Core": "7.0.0-rc1-final"
  • "EntityFramework.MicrosoftSqlServer": "7.0.0-rc1-final"

Is there a package that I am missing, or support for spatial data types with SQL Server, which is not yet implemented? I notice that there is a lag function in EF7 github Roadmap marked "Modeling - complex / type values", but I do not see any features.

If the package is missing, then which package can I include.

Thank you very much in advance

+4
source share
1 answer

Spatial data is not yet supported by the Entity Framework Core.

"Spatial 2.0, . , , github.com/aspnet/EntityFramework/issues/1100, , , ? Etc."

:

http://github.com/aspnet/EntityFramework/issues/1100 https://blogs.msdn.microsoft.com/dotnet/2017/06/28/announcing-ef-core-2-0-preview-2/

, , EF Core 1.0.0 . ( , )

. :

Entity Framework: Udt . ( - )

+1

Source: https://habr.com/ru/post/1621180/


All Articles