public IQueryable <T> Queryable <T>() where T : class { var query = new QuerySpecification <T>(); query.WithUnitOfWork(unitOfWork.For <TDatabase>()); return(query.ToIQueryable()); }
public IQuery <T> Query <T>(Func <IQueryable <T>, IQueryable <T> > expression) where T : class { var query = new QuerySpecification <T>(); query.WithUnitOfWork(unitOfWork.For <TDatabase>()); query = new QuerySpecification <T>(expression(query.ToIQueryable())); return(new Query <T>(query)); }