Exemple #1
0
 public SQLRoom5Repository(DbContextOptionsBuilder <Room5Context> dbOptionsBuilder)
 {
     _dbOptions = dbOptionsBuilder.Options;
     using (var db = new Room5Context(_dbOptions))
     {
         //  db.Database.Migrate();
         db.Database.EnsureCreated();
     }
 }
Exemple #2
0
 public SQLBookingRepository(Room5Context db)
 {
     _db = db;
 }
Exemple #3
0
 public SQLRoomRepository(Room5Context db)
 {
     _db = db;
 }