Files
AIPS/dotnet/AipsCore/Infrastructure/Persistence/Db/StartupExtensions.cs
2026-02-14 18:47:21 +01:00

15 lines
410 B
C#

using Microsoft.Extensions.DependencyInjection;
namespace AipsCore.Infrastructure.Persistence.Db;
public static class StartupExtensions
{
public static async Task InitializeInfrastructureAsync(this IServiceProvider services)
{
using var scope = services.CreateScope();
var serviceProvider = scope.ServiceProvider;
await DbInitializer.SeedRolesAsync(serviceProvider);
}
}