Entity Framework Core support for SQL Spatial Data Types - DBGeography?
问题 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 Geography data type when creating the EF model using EF Core from an existing SQL DB. Is there a way to use SQL Spatial Data Types like Geography in an ASP.NET Core project using Entity Framework or EF Core? This link shows some workarounds but nothing out of the box. This link is an older post dealing with this question. 回答1: