mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-22 20:13:41 +08:00
Update add column
This commit is contained in:
@@ -216,6 +216,7 @@ namespace SqlSugar
|
||||
this.Context.Updateable(dt)
|
||||
.AS(tableName)
|
||||
.Where($"{columnInfo.DbColumnName} is null ").ExecuteCommand();
|
||||
columnInfo.IsNullable = false;
|
||||
UpdateColumn(tableName, columnInfo);
|
||||
}
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user