I'm using EF 6 and I'm getting a really strange error on one of my models:
The fields configuration is :
Property(x => x.IncidentLocationGps).HasColumnName("IncidentLocationGPS").IsOptional();
And the error is:
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>>
)
Thanks in advance for your help