Пример #1
0
        public IQueryable <T> AllIncluding(params Expression <Func <T, object> >[] includeProperties)
        {
            IQueryable <T> query = dbContext.Set <T>();

            foreach (var includeProperty in includeProperties)
            {
                query = query.Include(includeProperty);
            }
            return(query);
        }
Пример #2
0
 public IQueryable <T> GetAll()
 {
     return(dbContext.Set <T>());
 }
Пример #3
0
 public virtual IQueryable <T> GetAll()
 {
     return(DbContext.Set <T>());
 }