✨ perf(Core): 代码优化
This commit is contained in:
parent
89c178fd2b
commit
4de13f605e
@ -81,6 +81,6 @@ public static class SeedDataHelper
|
||||
/// <returns></returns>
|
||||
private static IEnumerable<Type> SeedOrder(this IEnumerable<Type> types)
|
||||
{
|
||||
return types.OrderBy(u => u.GetCustomAttribute<SeedDataAttribute>(false)?.Order ?? 0).ToList();
|
||||
return types.OrderBy(u => u.GetCustomAttribute<SeedDataAttribute>(false)?.Order ?? 0);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user