From a4b709736b37e8c29a5e892061147d9fbf304c41 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Mon, 9 Jan 2023 11:38:30 +0800 Subject: [PATCH] - --- .../SqlSugar/Abstract/DbMaintenanceProvider/Methods.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/Asp.NetCore2/SqlSugar/Abstract/DbMaintenanceProvider/Methods.cs b/Src/Asp.NetCore2/SqlSugar/Abstract/DbMaintenanceProvider/Methods.cs index 38b42a500..39584741d 100644 --- a/Src/Asp.NetCore2/SqlSugar/Abstract/DbMaintenanceProvider/Methods.cs +++ b/Src/Asp.NetCore2/SqlSugar/Abstract/DbMaintenanceProvider/Methods.cs @@ -238,7 +238,7 @@ namespace SqlSugar dt.Add(columnInfo.DbColumnName, value); this.Context.Updateable(dt) .AS(tableName) - .Where($"{columnInfo.DbColumnName} is null ").ExecuteCommand(); + .Where($"{this.SqlBuilder.GetTranslationColumnName(columnInfo.DbColumnName)} is null ").ExecuteCommand(); columnInfo.IsNullable = false; UpdateColumn(tableName, columnInfo); }