예제 #1
0
 private static void InitializeDatabase(AplicationContext context)
 {
     context.Database.Migrate();
     using (var seed = new ApplicationDbInitializer(context))
     {
         seed.SeedDataAsync().GetAwaiter().GetResult();
     }
 }