Exemple #1
0
 public virtual Task <IEnumerable <TEntity> > AllAsync(CancellationToken cancellationToken = default(CancellationToken))
 {
     return(_readOnlyRepository.AllAsync(cancellationToken));
 }
Exemple #2
0
 public virtual Task <IEnumerable <TEntity> > AllAsync(CancellationToken cancellationToken = default(CancellationToken), bool @readonly = false)
 {
     return(@readonly ?
            _readOnlyRepository.AllAsync(cancellationToken) :
            _repository.AllAsync(cancellationToken, @readonly));
 }