Beispiel #1
0
        //Finding Records
        public IQueryable <T> Query <T>(params System.Linq.Expressions.Expression <Func <T, object> >[] includeProperties) where T : class
        {
            var query = _db.Set <T>().AsQueryable();

            foreach (var includeProperty in includeProperties)
            {
                query = query.Include(includeProperty);
            }
            return(query);
        }