当我的列是地理类型时,我应该使用哪个SqlDbType枚举?我使用的是MS SQL Server 2008 R2。
具体而言,我正在寻找以下内容:
// 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.????);