示例#1
0
 public Task <bool> ExistsAsync(SpecificationBase <T> spec, CancellationToken cancellationToken = default)
 {
     return(ApplySpecification(spec.UseStatelessQuery())
            .AnyAsync(cancellationToken));
 }
示例#2
0
 public bool Exists(SpecificationBase <T> spec)
 {
     return(ApplySpecification(spec.UseStatelessQuery())
            .Any());
 }