public virtual Task <IPagedList <TDest> > Get <TDest>(IVQSpecTo <T, TDest> spec, int pageNumber, int pageSize, CancellationToken cancellationToken = default) => SetSpecification(spec).ToPagedListAsync(pageNumber, pageSize, cancellationToken);
public virtual Task <TDest> FirstUnsafe <TDest>(IVQSpecTo <T, TDest> spec, CancellationToken cancellationToken = default) => SetSpecificationUnsafe(spec).FirstOrDefaultAsync(cancellationToken);
public virtual async Task <IEnumerable <TDest> > Get <TDest>(IVQSpecTo <T, TDest> spec, CancellationToken cancellationToken = default) => await SetSpecification(spec).ToListAsync(cancellationToken);
private IQueryable <TDest> SetSpecificationUnsafe <TDest>(IVQSpecTo <T, TDest> spec) => spec.Order(spec.Specify(GetCollectionUnsafe()));