0
votes

For storing the location in formation in the server I tried to create one table which contains the Geography column in SQL Server 2012.

I am using Fluent NHibernate ORM in the application. In my business object I have a property for location column.

[DataMember] public virtual DbGeography Location { get; set; }

Map(x => x.Location) ???

How do I map DbGeography type property to the Geography column in SQL Server 2012?

1

1 Answers

0
votes

NHibernate does not support spatial datatypes out of the box. Have a look at NHibernate.Spatial I use it in a project and it works well.