Cannot add System.Data.Spatial to my Domain classes

c# entity-framework shared-libraries

Question

I have an application that use EF5. I have a library project with my domian classes.
I want to have use DbGeaography in one of my classes but I cannot add the System.Data.Spatial reference to my project. It does not appear on the Assemblies. I checked that my library is on .Net 4.5 and it is using that Framework.

Thank you

1
6
12/26/2013 5:50:17 PM

Accepted Answer

Always Check that Entity framework is installed to used System.Data.Spatial. Also, add in your class:

using System.Data.Spatial;

Update: in EF6 this has been renamed to System.Data.Entity.Spatial

23
11/5/2014 5:16:12 AM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow