From 82f65613976bd85a3a112d25d3ece5e5b578dc22 Mon Sep 17 00:00:00 2001 From: htking <378629777@qq.com> Date: Fri, 5 Nov 2021 04:06:52 +0000 Subject: [PATCH] update Src/Asp.Net/SqlSugar/ExpressionsToSql/Common/SugarParameter.cs. --- .../SqlSugar/ExpressionsToSql/Common/SugarParameter.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Src/Asp.Net/SqlSugar/ExpressionsToSql/Common/SugarParameter.cs b/Src/Asp.Net/SqlSugar/ExpressionsToSql/Common/SugarParameter.cs index 3a32f4994..00a1e2c80 100644 --- a/Src/Asp.Net/SqlSugar/ExpressionsToSql/Common/SugarParameter.cs +++ b/Src/Asp.Net/SqlSugar/ExpressionsToSql/Common/SugarParameter.cs @@ -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;