🎃 feat(SeedData): 添加根据委托方法获取种子数据类型新方法
This commit is contained in:
parent
18c6272a8e
commit
bdf7d36b04
@ -46,6 +46,16 @@ public static class SeedDataHelper
|
||||
?.GetGenericArguments().FirstOrDefault() == genericType).SeedOrder().ToList();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据委托方法获取种子数据类型
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static List<Type> GetSeedDataTypeList(Func<Type, Type, bool> func = null)
|
||||
{
|
||||
return GetAllSeedDataTypeList().WhereIF(func != null, u => func!(u, u.GetInterfaces().FirstOrDefault()
|
||||
?.GetGenericArguments().FirstOrDefault())).SeedOrder().ToList();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取租户种子数据类型
|
||||
/// </summary>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user