private async ValueTask <DbRowGrpcModel> GetDbRowModel(string partitionKey, string rowKey)
 {
     return(await _myNoSqlGrpcServer.GetAsync(new GetDbRowsGrpcRequest
     {
         TableName = _tableName,
         PartitionKey = partitionKey,
         RowKey = rowKey,
     }).FirstOrDefaultAsync());
 }
Exemplo n.º 2
0
        public async IAsyncEnumerable <T> ExecuteAsync()
        {
            var result = _myNoSqlGrpcServer.GetAsync(new GetDbRowsGrpcRequest
            {
                TableName    = _tableName,
                PartitionKey = _partitionKey,
                Limit        = _limitRecords,
                Skip         = _skipRecords,
            });

            await foreach (var itm in result)
            {
                yield return(_deserializer(itm.Content));
            }
        }