mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-24 18:04:52 +08:00
Update pgsql gis
This commit is contained in:
parent
e5ff810eb3
commit
33d0dbea59
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user