The specified schema is invalid. Errors: "System.Data.Spatial.DbGeography" that cannot be mapped to a primitive type

I am doing Entity Framework (v6) db first. When I try to access data from my datacontext, I get the following error. The relationship "Model.FK_Table1_Table2" was not loaded because the type "Model.Table1" is not available. The following information may be useful in resolving a previous error: The Location property of type Model.Table1 has a property type of System.Data.Spatial.DbGeography that cannot be mapped to a primitive type.

Any idea what causes this error?

+4
source share
1

, , , EF5 EF6. . :

http://msdn.microsoft.com/en-US/data/dn469466

, :

  • EF6
  • /
  • System.Data.Entity
  • () EF.
+2

All Articles