😎优化判断

This commit is contained in:
zuohuaijun 2024-07-18 17:49:22 +08:00
parent 1faff96638
commit ac630a2d07

View File

@ -380,7 +380,7 @@ public static class SqlSugarSetup
.Where(u => !u.GetCustomAttributes<IgnoreTableAttribute>().Any())
.Where(u => !u.IsInterface && !u.IsAbstract && u.IsClass && u.IsDefined(typeof(SugarTable), false) &&
!u.IsDefined(typeof(SysTableAttribute), false) && !u.IsDefined(typeof(LogTableAttribute), false) && !u.IsDefined(typeof(TenantAttribute), false)).ToList();
if (!entityTypes.Any()) return;
if (entityTypes.Count == 0) return;
foreach (var entityType in entityTypes)
{