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