From 53f598d6794c776cdf392971cd425a2edd459ab6 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Thu, 20 Mar 2025 20:47:19 +0800 Subject: [PATCH] =?UTF-8?q?Update=20=E4=BA=BA=E5=A4=A7=E9=87=91=E4=BB=93Sq?= =?UTF-8?q?lServer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Realization/Kdbndp/SqlBuilder/KdbndpUpdateBuilder.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Src/Asp.NetCore2/SqlSugar/Realization/Kdbndp/SqlBuilder/KdbndpUpdateBuilder.cs b/Src/Asp.NetCore2/SqlSugar/Realization/Kdbndp/SqlBuilder/KdbndpUpdateBuilder.cs index d0a6a900b..f2cfdcc43 100644 --- a/Src/Asp.NetCore2/SqlSugar/Realization/Kdbndp/SqlBuilder/KdbndpUpdateBuilder.cs +++ b/Src/Asp.NetCore2/SqlSugar/Realization/Kdbndp/SqlBuilder/KdbndpUpdateBuilder.cs @@ -163,7 +163,11 @@ namespace SqlSugar } if (IsSqlServerModel()) { - if (dbType == "varchar") + if (dbType == "numeric") + { + dbType = "numeric(18,6)"; + } + else if (dbType == "varchar") { dbType = "varchar(max)"; }