Fixing SQL Server Spatial "Not a Valid Instance of Geography" Errors in C#
The project we're working on needs the ability for a user to define a polygon on a map, like this: Then, we need to save that defined polygon as a SQL Geography [https://msdn.microsoft.com/en-us/library/cc280766.aspx] type in our database, which we access using Entity Framework.