Browse Source

Update add column

pull/18/head
sunkaixuan 3 years ago
parent
commit
9534c8fae6
  1. 1
      Src/Asp.Net/SqlSugar/Abstract/DbMaintenanceProvider/Methods.cs

1
Src/Asp.Net/SqlSugar/Abstract/DbMaintenanceProvider/Methods.cs

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

Loading…
Cancel
Save