Exemplo n.º 1
0
        public IQueryable <T> FindAll(params Expression <Func <T, object> >[] includeProperties)
        {
            IQueryable <T> items = _context.Set <T>();

            if (includeProperties != null)
            {
                foreach (var includeProperty in includeProperties)
                {
                    items = items.Include(includeProperty);
                }
            }
            return(items.AsQueryable());
        }
 public virtual IQueryable <T> GetAll()
 {
     return(DbContext.Set <T>());
 }