Interface IDynamoTableBatchGetItems<TRecord>
Interface to specify the BatchGetItems operation for a specific record type.
Namespace: LambdaSharp.DynamoDB.Native.Operations
Assembly: LambdaSharp.DynamoDB.Native.dll
Syntax
public interface IDynamoTableBatchGetItems<TRecord>
where TRecord : class
Type Parameters
Name | Description |
---|---|
TRecord | The record type. |
Methods
ExecuteAsync(Int32, CancellationToken)
Execute the BatchGetItems operation.
Declaration
Task<IEnumerable<TRecord>> ExecuteAsync(int maxAttempts = 5, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
System. |
maxAttempts | Maximum number of attempts with exponential back when encountering provisioned throughput is exceeded. |
System. |
cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
Type | Description |
---|---|
System. |
List of found items. |
Get<T>(Expression<Func<TRecord, T>>)
Selects a record property to fetch.
Declaration
IDynamoTableBatchGetItems<TRecord> Get<T>(Expression<Func<TRecord, T>> attribute)
Parameters
Type | Name | Description |
---|---|---|
System. |
attribute | A lambda expression that returns the record property. |
Returns
Type | Description |
---|---|
IDynamo |
Type Parameters
Name | Description |
---|---|
T | The property type. |