Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public IEnumerable <ProductCategory> Get <TOrderProperty>(Expression <Func <ProductCategory, bool> > predicate, IQueryIncludeOrder <ProductCategory, TOrderProperty> queryObj = null)
 {
     throw new NotImplementedException();
 }
Esempio n. 3
0
 public IEnumerable <ProductCategory> GetAll <TOrderProperty>(IQueryIncludeOrder <ProductCategory, TOrderProperty> queryObj = null)
 {
     throw new NotImplementedException();
 }
Esempio n. 4
0
        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);
        }