Show / Hide Table of Contents

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.Int32 maxAttempts

Maximum number of attempts with exponential back when encountering provisioned throughput is exceeded.

System.Threading.CancellationToken cancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns
Type Description
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<TRecord>>

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.Linq.Expressions.Expression<System.Func<TRecord, T>> attribute

A lambda expression that returns the record property.

Returns
Type Description
IDynamoTableBatchGetItems<TRecord>
Type Parameters
Name Description
T

The property type.

In This Article
Back to top Generated by DocFX