mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-15 18:55:07 +08:00
Update pgsql gis
This commit is contained in:
@@ -452,7 +452,16 @@ namespace SqlSugar
|
||||
{
|
||||
return LambdaExpressions.DbMehtods.GetDate();
|
||||
}
|
||||
else if (UtilMethods.IsErrorDecimalString()==true)
|
||||
else if (columnInfo.PropertyType.FullName == "NetTopologySuite.Geometries.Geometry")
|
||||
{
|
||||
var pname = Builder.SqlParameterKeyWord + "Geometry" + GetDbColumnIndex;
|
||||
var p = new SugarParameter(pname, columnInfo.Value);
|
||||
p.DbType= System.Data.DbType.Object;
|
||||
this.Parameters.Add(p);
|
||||
GetDbColumnIndex++;
|
||||
return pname;
|
||||
}
|
||||
else if (UtilMethods.IsErrorDecimalString() == true)
|
||||
{
|
||||
var pname = Builder.SqlParameterKeyWord + "Decimal" + GetDbColumnIndex;
|
||||
var p = new SugarParameter(pname, columnInfo.Value);
|
||||
|
Reference in New Issue
Block a user