Browse Source

Update TableDifferenceProvider.cs

pull/20/head
sunkaixuan 2 years ago
parent
commit
da5fa29c76
  1. 2
      Src/Asp.Net/SqlSugar/Abstract/CodeFirstProvider/TableDifferenceProvider.cs

2
Src/Asp.Net/SqlSugar/Abstract/CodeFirstProvider/TableDifferenceProvider.cs

@ -58,6 +58,8 @@ namespace SqlSugar
foreach (var tableInfo in tableInfos)
{
TableDifferenceInfo addItem = new TableDifferenceInfo();
if (tableInfo.OldTableInfo == null)
tableInfo.OldTableInfo = new DbTableInfo();
addItem.TableName = tableInfo.OldTableInfo.Name;
addItem.AddColums = GetAddColumn(tableInfo);
addItem.UpdateColums = GetUpdateColumn(tableInfo);

Loading…
Cancel
Save