Update add column

This commit is contained in:
sunkaixuan
2022-05-06 20:23:11 +08:00
parent 969bbffab1
commit 9534c8fae6

View File

@@ -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;