public static void Main(string[] args) { IWebHost webHost = CreateWebHostBuilder(args).Build(); using (IServiceScope serviceScope = webHost.Services.CreateScope()) { using (ProviderDbContext providerdbcontext = serviceScope.ServiceProvider.GetRequiredService <ProviderDbContext>()) { var roleManager = serviceScope.ServiceProvider.GetRequiredService <RoleManager <IdentityRole> >(); ProviderDb.Seed(providerdbcontext, roleManager); } } webHost.Run(); }
public SpmMockController(IConfigurationRoot p_cfg, ProviderDb p_db) { m_cfg = p_cfg; m_db = p_db; }
public CelloParkMockController(ProviderDb p_db, IConfigurationRoot p_cfg) { m_db = p_db; m_cfg = p_cfg; }
public PangoMockController(ProviderDb p_db, IConfigurationRoot p_cfg) { m_db = p_db; m_cfg = p_cfg; }