예제 #1
0
 public GenericRepository(HotelDBContext _context)
 {
     this._context = _context;
     table         = _context.Set <T>();
 }
예제 #2
0
 public DbSet <T> Set <T>() where T : class
 {
     return(dbContext.Set <T>());
 }
예제 #3
0
 public GenericRepository()
 {
     this._context = new HotelDBContext();
     table         = _context.Set <T>();
 }