title: Entity framework 6 and spatial data
body: <p>I have database with spatial data types. I use database first model and entity framework 6.0.2 and .NET 4.5. When I am trying to use the generated classes I get following error:</p>
  
  <p>Schema specified is not valid. Errors: 
  The relationship 'Name_FK1' was not loaded because the type 'Model.TypeB' is not available.
  The following information may be useful in resolving the previous error:
  The property 'Position' on the type 'Data.TypeB' has a property type of 'System.Data.Spatial.DbGeography' which cannot be mapped to a primitive type.</p>
  
  <p>The same error is listed for all tables where I use spatial type. The ‘Name_FK1’ is foreign key relation. </p>
  
  <p>What am I doing wrong? </p>
  
  <p>Thank you for your help.</p>