I have a database with spatial data types. I am using the first database model and entity framework 6.0.2 and .NET 4.5. When I try to use the generated classes, I get the following error:
The specified schema is invalid. Errors: The association "Name_FK1" was not loaded because the type "Model.TypeB" is not available. The following information may be useful in resolving a previous error: The Position property in the Data.TypeB type has the property type System.Data.Spatial.DbGeography, which cannot be mapped to a primitive type.
The same error is indicated for all tables where I use the spatial type. "Name_FK1" is the relation of foreign keys.
What am I doing wrong?
Thank you for your help.
c # entity-framework spatial
Urosp
source share