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