Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
 protected RepositoryBase(DbContext dbContext)
 {
     this._dbContext        = dbContext;
     this._fieldsExpression = new FieldsExpression <TEntity, TIRessource>();
 }