¿Qué enumeración SqlDbType debo usar cuando mi columna es del tipo Geografía? Estoy usando MS SQL Server 2008 R2.SqlDbType y Geography
Esto es lo que estoy buscando específicamente:
// ADO.net - what do I use for the SqlDbType when it's defined
// as Geography in the stored proc
SqlCommand command = new SqlCommand();
command.CommandText = "dbo.up_Foobar_Insert";
command.CommandType = CommandType.StoredProcedure;
command.Parameters.Add("@SomeGeographyType", SqlDbType.????);
También hay un paquete NuGet con el conjunto requerido: [Microsoft.SqlServer.Types (Spatial)] (http://www.nuget.org/packages/Microsoft.SqlServer.Types/) – Sam