Exemple #1
0
 public static void Seed(HotelsReviewDbContext context)
 {
     foreach (ISeeding seeding in Seedings)
     {
         seeding.Seed(context);
         context.SaveChanges();
     }
 }
 public DbContextUnitOfWork(HotelsReviewDbContext context)
 {
     _context = context;;
 }
Exemple #3
0
 public static void Initialize(HotelsReviewDbContext context)
 {
     context.Database.Migrate();
     context.SaveChanges();
 }