Exemplo n.º 1
0
 public Task <DocumentMetadata[]> GetMetadataAsync <T>(DocumentQuery query, CancellationToken cancellationToken)
 {
     return(_transaction.QueryMetadataAsync(_mapper.GetDocumentType <T>(), query, cancellationToken));
 }
Exemplo n.º 2
0
        public async Task <T[]> GetAsync <T>(DocumentQuery query, CancellationToken cancellationToken)
        {
            DocumentRow[] rows = await _transaction.QueryAsync(_mapper.GetDocumentType <T>(), query, cancellationToken);

            return(rows.Select(r => _mapper.RowToDocument <T>(r)).ToArray());
        }