public GenericRepository(HotelDBContext _context) { this._context = _context; table = _context.Set <T>(); }
public DbSet <T> Set <T>() where T : class { return(dbContext.Set <T>()); }
public GenericRepository() { this._context = new HotelDBContext(); table = _context.Set <T>(); }