示例#1
0
        public IEnumerable <T> ObtenerTodo(params Expression <Func <T, object> >[] Propiedades)
        {
            IQueryable <T> query = Context.Set <T>().AsNoTracking();

            query = Propiedades.Aggregate(query, (current, includeProperty) => current.Include(includeProperty));

            return(query.ToList());
        }