Question

I am using Linq-To-Sql , and need to compute the column that is of geography data type. I keep searching and searching and finding answers that say this is not possible. All these answers are old , I know that it is now possible I just can not remember how to do it.

Was it helpful?

Solution

Linq-to-Sql is officially a legacy ORM: http://msdn.microsoft.com/en-us/library/ms178359.aspx#orm.

LINQ to SQL is a legacy ORM that Microsoft provides.

Also

Microsoft is investing minimal efforts to enhance it

Meaning: spatial data types will never be supported by Linq to Sql. That's why the old answers still apply and will always apply. Move to Entity Framework 5 or higher for an ORM with spatial data support.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top