public IQueryable <T> GetAll(params Expression <Func <T, object> >[] navigationProperties) { IQueryable <T> dbQuery = _context.Set <T>(); if (navigationProperties != null) { dbQuery = navigationProperties.Aggregate(dbQuery, (current, include) => current.Include(include)); } return(dbQuery.AsNoTracking()); }