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