private IQueryable <T> SelectFields <T>(IQueryable <TEntity> query, IEnumerable <Field> listeChamps) where T : new() { Expression <Func <TEntity, T> > selectExpression = new FieldsExpression <TEntity, T>().MakeSelectExpression(listeChamps); return(query.Select(selectExpression)); }
protected RepositoryBase(DbContext dbContext) { this._dbContext = dbContext; this._fieldsExpression = new FieldsExpression <TEntity, TIRessource>(); }