Пример #1
0
 /// <summary>
 /// Specify the Query operation to fetch a list of mixed records type.
 /// </summary>
 /// <param name="queryClause">The query clause that specifies the index and sort-key constraints.</param>
 /// <param name="limit">The maximum number of records to read.</param>
 /// <param name="scanIndexForward">The direction of index scan.</param>
 /// <param name="consistentRead">Boolean indicating if the read operations should be performed against the main partition (2x cost compared to eventual consistent read).</param>
 public IDynamoTableQuery Query(IDynamoQueryClause queryClause, int limit, bool scanIndexForward, bool consistentRead)
 => new DynamoTableQuery <object>(this, new QueryRequest {
     ConsistentRead   = consistentRead,
     Limit            = limit,
     ScanIndexForward = scanIndexForward,
     TableName        = TableName
 }, (ADynamoQueryClause <object>)queryClause);
Пример #2
0
 /// <summary>
 /// Specify the Query operation to fetch a list of records of the same type.
 /// </summary>
 /// <param name="queryClause">The query clause that specifies the index and sort-key constraints.</param>
 /// <param name="limit">The maximum number of records to read.</param>
 /// <param name="scanIndexForward">The direction of index scan.</param>
 /// <param name="consistentRead">Boolean indicating if the read operations should be performed against the main partition (2x cost compared to eventual consistent read).</param>
 /// <typeparam name="TRecord">The record type.</typeparam>
 public IDynamoTableQuery <TRecord> Query <TRecord>(IDynamoQueryClause <TRecord> queryClause, int limit, bool scanIndexForward, bool consistentRead)
     where TRecord : class
 => new DynamoTableQuery <TRecord>(this, new QueryRequest {
     ConsistentRead   = consistentRead,
     Limit            = limit,
     ScanIndexForward = scanIndexForward,
     TableName        = TableName
 }, (ADynamoQueryClause <TRecord>)queryClause);