Using Dapper with SQL Spatial Types as a parameter
问题 I've got a system which basically has to do a query like this: SELECT * FROM MyTable WHERE @parameter.STIntersects(MyGeometryColumn) This is quite simple to do when using vanilla SQL parameters, you just have to create your parameter in a non-typical way (where the builder variable is a SqlGeometryBuilder which I use to create a rectangle): command.Parameters.Add(new SqlParameter { UdtTypeName = "geometry", Value = builder.ConstructedGeometry, ParameterName = "@paremeter" }); Now, When I try