Browse Source

-

pull/30/head
sunkaixuan 2 years ago
parent
commit
a4b709736b
  1. 2
      Src/Asp.NetCore2/SqlSugar/Abstract/DbMaintenanceProvider/Methods.cs

2
Src/Asp.NetCore2/SqlSugar/Abstract/DbMaintenanceProvider/Methods.cs

@ -238,7 +238,7 @@ namespace SqlSugar
dt.Add(columnInfo.DbColumnName, value); dt.Add(columnInfo.DbColumnName, value);
this.Context.Updateable(dt) this.Context.Updateable(dt)
.AS(tableName) .AS(tableName)
.Where($"{columnInfo.DbColumnName} is null ").ExecuteCommand(); .Where($"{this.SqlBuilder.GetTranslationColumnName(columnInfo.DbColumnName)} is null ").ExecuteCommand();
columnInfo.IsNullable = false; columnInfo.IsNullable = false;
UpdateColumn(tableName, columnInfo); UpdateColumn(tableName, columnInfo);
} }

Loading…
Cancel
Save