mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-07-31 15:56:25 +08:00
Update pgsql gis
This commit is contained in:
parent
e5ff810eb3
commit
33d0dbea59
@ -452,7 +452,16 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
return LambdaExpressions.DbMehtods.GetDate();
|
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 pname = Builder.SqlParameterKeyWord + "Decimal" + GetDbColumnIndex;
|
||||||
var p = new SugarParameter(pname, columnInfo.Value);
|
var p = new SugarParameter(pname, columnInfo.Value);
|
||||||
|
Loading…
Reference in New Issue
Block a user