Welche SqlDbType-Aufzählung sollte ich verwenden, wenn meine Spalte der Geography-Typ ist? Ich benutze MS SQL Server 2008 R2.SqlDbType und Geografie
Dies ist, was ich suche, konkret: diese
// 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.????);
Es gibt auch ein NuGet-Paket mit der erforderlichen Assembly: [Microsoft.SqlServer.Types (Spatial)] (http://www.nuget.org/packages/Microsoft.SqlServer.Types/) – Sam