😎删除多余注释

This commit is contained in:
zuohuaijun 2024-09-06 12:57:09 +08:00
parent fbd22c6e3b
commit d9e92bb72e

View File

@ -430,7 +430,7 @@ public static class SqlSugarSetup
db.CodeFirst.SplitTables().InitTables(entityType);
}
// 初始化业务应用种子数据
// 初始化租户业务数据
InitTenantData(iTenant, config.ConfigId.ToLong());
}
@ -441,7 +441,6 @@ public static class SqlSugarSetup
/// <param name="dbConfigId">租户Id</param>
public static void InitTenantData(ITenant iTenant, long dbConfigId)
{
// 初始化业务应用种子数据
var seedDataTypes = App.EffectiveTypes.Where(u => !u.IsInterface && !u.IsAbstract && u.IsClass && u.GetInterfaces().Any(i => i.HasImplementedRawGeneric(typeof(ISqlSugarEntitySeedData<>))))
.Where(u => u.IsDefined(typeof(TenantSeedAttribute), false))
.OrderBy(u => u.GetCustomAttributes(typeof(SeedDataAttribute), false).Length > 0 ? ((SeedDataAttribute)u.GetCustomAttributes(typeof(SeedDataAttribute), false)[0]).Order : 0).ToList();