perf(Core): 代码优化

This commit is contained in:
喵你个汪呀 2025-08-19 12:45:47 +08:00
parent 89c178fd2b
commit 4de13f605e

View File

@ -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);
}
}