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); }