Moved to appropriate place
This commit is contained in:
@@ -1,16 +0,0 @@
|
||||
using AipsCore.Infrastructure.Persistence.Db;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
|
||||
namespace AipsCore.Infrastructure.DI;
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user