我的域中有这个
public DbGeography Location { get; set; }
这在我的映射中
this.Property(t => t.Location);
现在在我的映射文件中,上面一行出现错误
Error 1 The type 'System.Data.Spatial.DbGeography' must be a non-nullable value type in order to use it as parameter 'T' in the generic type or method 'System.Data.Entity.ModelConfiguration.Configuration.StructuralTypeConfiguration<TStructuralType>.Property<T>(System.Linq.Expressions.Expression<System.Func<TStructuralType,T>>)'
EF 5 中从未出现过此错误。