I am hitting ModelValidationException when I use CodeFirst/DbModelBuilder to build my data model. One of my entities has DbGeography property. As long as I run the app, I will get the below exception:
One or more validation errors were detected during model generation:
\thttp://schemas.microsoft.com/ado/2009/11/edm.DbGeography: : EntityType 'DbGeography' has no key defined. Define the key for this EntityType.
I tried EF 5 and EF 6 apha1 and had the same issue.
One or more validation errors were detected during model generation:
\thttp://schemas.microsoft.com/ado/2009/11/edm.DbGeography: : EntityType 'DbGeography' has no key defined. Define the key for this EntityType.
I tried EF 5 and EF 6 apha1 and had the same issue.