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

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

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

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

@@ -197,7 +197,7 @@ public static class SqlSugarSetup
     {
         // 获取所有继承基类数据表集合
         var entityTypes = App.EffectiveTypes.Where(u => !u.IsInterface && !u.IsAbstract && u.IsClass
-            && u.BaseType == typeof(EntityBase));
+            && (u.BaseType == typeof(EntityBase) || u.BaseType == typeof(EntityTenant) || u.BaseType == typeof(DataEntityBase)));
         if (!entityTypes.Any()) return;
 
         foreach (var entityType in entityTypes)