!9 pgsql geometry对象更新和插入bug

Merge pull request !9 from htking/master
This commit is contained in:
sunkaixuan 2021-11-06 11:21:16 +00:00 committed by Gitee
commit 255c03ce5d

View File

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Common;
@ -128,6 +128,10 @@ namespace SqlSugar
{
this.DbType = System.Data.DbType.Time;
}
else if (type.Name=="Geometry")
{
this.DbType = System.Data.DbType.Object;
}
else if (type!=null&&type.IsEnum())
{
this.DbType = System.Data.DbType.Int64;