Dev*_*ned 6 c# mysql entity-framework spatial
我使用DbGeography从System.Data.Entity.Spatial;与实体框架与SQL Server数据库.现在我切换到使用MySQL服务器,当我创建与该DbGeography 类型相关的数据库时,我收到一个错误.
如何在不将所有域类属性更改为其他类型的情况下解决此问题?
public class Place
{
...
public virtual int Id { get; set; }
public string Name { get; set; }
public DbGeography Location {get;set;}
...
}
Run Code Online (Sandbox Code Playgroud)
我遇到的错误就是这个错误:
System.NotSupportedException: There is no store type corresponding to the EDM type 'Edm.Geography' of primitive type 'Geography'.
Run Code Online (Sandbox Code Playgroud)