public GenericRepository(CBTDbContext context) { this._context = context; this.DbSet = _context.Set <TEntity>(); }