public static void Initialize(IServiceProvider serviceProvider)
 {
     ApplicationDbContextSeeder.Seeding(serviceProvider.GetService <ApplicationDbContext>()).Wait();
 }
Exemplo n.º 2
0
 public static void Main(string[] args)
 {
     ApplicationDbContextSeeder.Initialize();
 }
 public static void Initialize()
 {
     ApplicationDbContextSeeder.Seeding(new ApplicationDbContextFactory().Create()).Wait();
 }