Beispiel #1
0
        public static async Task Main(string[] args)
        {
            IHost Host = CreateHostBuilder(args).Build();

            using (IServiceScope Scope = Host.Services.CreateScope())
            {
                RoleManager <IdentityRole> roleManager = Scope.ServiceProvider.GetService <RoleManager <IdentityRole> >();

                await DbSeeder.SeedDataAsync(roleManager);
            }

            await Host.RunAsync();
        }