コード例 #1
0
 public virtual Task <IEnumerable <TEntity> > AllAsync(CancellationToken cancellationToken = default(CancellationToken))
 {
     return(_readOnlyRepository.AllAsync(cancellationToken));
 }
コード例 #2
0
ファイル: Service.cs プロジェクト: adeministr/AdminLteCore
 public virtual Task <IEnumerable <TEntity> > AllAsync(CancellationToken cancellationToken = default(CancellationToken), bool @readonly = false)
 {
     return(@readonly ?
            _readOnlyRepository.AllAsync(cancellationToken) :
            _repository.AllAsync(cancellationToken, @readonly));
 }