Преглед изворни кода

Merge commit 'refs/pull/360/head' of https://gitee.com/zuohuaijun/Admin.NET into next

zuohuaijun пре 3 година
родитељ
комит
e6cdbe8188
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      Admin.NET/Admin.NET.Core/SqlSugar/SqlSugarSetup.cs

+ 1 - 0
Admin.NET/Admin.NET.Core/SqlSugar/SqlSugarSetup.cs

@@ -177,6 +177,7 @@ public static class SqlSugarSetup
             var provider = db.GetConnectionScope(tAtt == null ? SqlSugarConst.ConfigId : tAtt.configId);
 
             var seedDataTable = seedData.ToList().ToDataTable();
+            seedDataTable.TableName = db.EntityMaintenance.GetEntityInfo(entityType).DbTableName;
             if (seedDataTable.Columns.Contains(SqlSugarConst.PrimaryKey))
             {
                 var storage = provider.Storageable(seedDataTable).WhereColumns(SqlSugarConst.PrimaryKey).ToStorage();