Entity Framework Core support for SQL Spatial Data Types - DBGeography?

后端 未结 2 1906
梦如初夏
梦如初夏 2021-01-18 03:02

I want to make a web application using ASP.NET Core Razor Pages that has some geographic data in SQL Server. Visual Studio gives an error that it doesn\'t support the Geogr

2条回答
  •  暖寄归人
    2021-01-18 03:33

    I just stumbled across your post and also the first link you mentioned. Only a few days ago, a preview version of EntityFrameworkCore 2.2.0 was published which is supposed to support spatial data types in SQL Server.

    See https://github.com/aspnet/EntityFrameworkCore/issues/1100#issuecomment-417618315 and the following comments.

    I haven't tried it myself yet and it's probably not working 100%, but it's surely worth a try.

提交回复
热议问题