From d423769bc2f5f956d30e230a73d7c4acd0645d38 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Wed, 9 Apr 2025 12:57:44 +0800 Subject: [PATCH] =?UTF-8?q?Update=20=E4=BA=BA=E5=A4=A7=E9=87=91=E4=BB=93?= =?UTF-8?q?=20Geometry?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SqlSugar/ExpressionsToSql/Common/SugarParameter.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Src/Asp.NetCore2/SqlSugar/ExpressionsToSql/Common/SugarParameter.cs b/Src/Asp.NetCore2/SqlSugar/ExpressionsToSql/Common/SugarParameter.cs index 220ed929a..4e7d29688 100644 --- a/Src/Asp.NetCore2/SqlSugar/ExpressionsToSql/Common/SugarParameter.cs +++ b/Src/Asp.NetCore2/SqlSugar/ExpressionsToSql/Common/SugarParameter.cs @@ -139,6 +139,14 @@ namespace SqlSugar { this.DbType = System.Data.DbType.Object; } + else if (type?.Namespace == "Kdbndp.LegacyPostgis") + { + this.DbType = System.Data.DbType.Object; + } + else if (type?.Namespace == "NetTopologySuite.Geometries") + { + this.DbType = System.Data.DbType.Object; + } else if (type!=null&&type.IsEnum()) { this.DbType = System.Data.DbType.Int64;