public virtual IEnumerable <TEntity> GetAll <TOrderProperty>(IQueryIncludeOrder <TEntity, TOrderProperty> queryObj = null) { if (queryObj == null) { return(_dbSet); } IQueryable <TEntity> query = _dbSet; query = query.ApplyTrackingInclude(queryObj); query = query.ApplyOrdering(queryObj); return(query); }
public IEnumerable <ProductCategory> Get <TOrderProperty>(Expression <Func <ProductCategory, bool> > predicate, IQueryIncludeOrder <ProductCategory, TOrderProperty> queryObj = null) { throw new NotImplementedException(); }
public IEnumerable <ProductCategory> GetAll <TOrderProperty>(IQueryIncludeOrder <ProductCategory, TOrderProperty> queryObj = null) { throw new NotImplementedException(); }
public virtual IEnumerable <TEntity> Get <TOrderProperty>(Expression <Func <TEntity, bool> > predicate, IQueryIncludeOrder <TEntity, TOrderProperty> queryObj = null) { IQueryable <TEntity> query = _dbSet; query = query.ApplyFilter(predicate); if (queryObj == null) { return(query); } query = query.ApplyTrackingInclude(queryObj); query = query.ApplyOrdering(queryObj); return(query); }