Skip to content

DynamoDBStorage.QueryAsync(string, Dictionary<string, AttributeValue>, string, Func<Dictionary<string, AttributeValue>, TResult>, CancellationToken, string, bool, Dictionary<string, AttributeValue>, bool)

QueryAsync(string, Dictionary<string, AttributeValue>, string, Func<Dictionary<string, AttributeValue>, TResult>, CancellationToken, string, bool, Dictionary<string, AttributeValue>, bool)

View source
public Task<(List<TResult> results, Dictionary<string, AttributeValue>? lastEvaluatedKey)> DynamoDBStorage.QueryAsync<TResult>(string tableName, Dictionary<string, AttributeValue> keys, string keyConditionExpression, Func<Dictionary<string, AttributeValue>, TResult> resolver, CancellationToken cancellationToken, string indexName = "", bool scanIndexForward = true, Dictionary<string, AttributeValue>? lastEvaluatedKey = null, bool consistentRead = true)
Queries a page of entries using the supplied cancellation token.

Parameters

tableNamestring
The table name.
keysDictionary<string, AttributeValue>
The key condition values.
keyConditionExpressionstring
The expression filtering the keys.
resolverFunc<Dictionary<string, AttributeValue>, TResult>
Converts each entry to the result type.
cancellationTokenCancellationToken
The cancellation token.
indexNamestring
The optional secondary index name.
scanIndexForwardbool
Whether the index is read in ascending order.
lastEvaluatedKeyDictionary<string, AttributeValue>
The previous page's continuation key.
consistentReadbool
Whether reads must be strongly consistent.