AWS SDK Version 2 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

.NET Framework 4.5
 
Context object for using the DataModel mode of DynamoDB. Used to interact with the service, save/load objects, etc.

Inheritance Hierarchy

System.Object
  Amazon.DynamoDBv2.DataModel.DynamoDBContext

Namespace: Amazon.DynamoDBv2.DataModel
Assembly: AWSSDK.dll
Version: (assembly version)

Syntax

C#
public class DynamoDBContext : Object
         IDisposable, IDynamoDBContext

The DynamoDBContext type exposes the following members

Constructors

NameDescription
Public Method DynamoDBContext(IAmazonDynamoDB, DynamoDBContextConfig) Constructs a DynamoDBContext object with the specified DynamoDB client and configuration.
Public Method DynamoDBContext() Constructs a DynamoDBContext object with a default AmazonDynamoDBClient client and a default DynamoDBContextConfig object for configuration.
Public Method DynamoDBContext(RegionEndpoint) Constructs a DynamoDBContext object with a default AmazonDynamoDBClient client and a default DynamoDBContextConfig object for configuration.
Public Method DynamoDBContext(DynamoDBContextConfig) Constructs a DynamoDBContext object with the specified configuration. Uses a default AmazonDynamoDBClient as the client.
Public Method DynamoDBContext(RegionEndpoint, DynamoDBContextConfig) Constructs a DynamoDBContext object with the specified configuration. Uses a default AmazonDynamoDBClient as the client.
Public Method DynamoDBContext(IAmazonDynamoDB) Constructs a DynamoDBContext object with the specified DynamoDB client. Uses default DynamoDBContextConfig object for configuration.

Properties

NameTypeDescription
Public Property ConverterCache System.Collections.Generic.Dictionary<System.Type, Amazon.DynamoDBv2.DataModel.IPropertyConverter> This cache is a way to store Converters for objects which provides a way to expand Context

Methods

NameDescription
Public Method CreateBatchGet()
Public Method CreateBatchGet(DynamoDBOperationConfig)
Public Method CreateBatchWrite()
Public Method CreateBatchWrite(DynamoDBOperationConfig)
Public Method CreateMultiTableBatchGet(BatchGet[]) Creates a MultiTableBatchGet object, composed of multiple individual BatchGet objects.
Public Method CreateMultiTableBatchWrite(BatchWrite[]) Creates a MultiTableBatchWrite object, composed of multiple individual BatchWrite objects.
Public Method Delete(T)
Public Method Delete(T, DynamoDBOperationConfig)
Public Method Delete(object)
Public Method Delete(object, DynamoDBOperationConfig)
Public Method Delete(object, object)
Public Method Delete(object, object, DynamoDBOperationConfig)
Public Method DeleteAsync(T, CancellationToken)
Public Method DeleteAsync(T, DynamoDBOperationConfig, CancellationToken)
Public Method DeleteAsync(object, CancellationToken)
Public Method DeleteAsync(object, DynamoDBOperationConfig, CancellationToken)
Public Method DeleteAsync(object, object, CancellationToken)
Public Method DeleteAsync(object, object, DynamoDBOperationConfig, CancellationToken)
Public Method Dispose() Disposes of all managed and unmanaged resources.
Public Method ExecuteBatchGet(BatchGet[]) Issues a batch-get request with multiple batches. Results are stored in the individual batches.
Public Method ExecuteBatchGetAsync(BatchGet[]) Issues a batch-get request with multiple batches. Results are stored in the individual batches.
Public Method ExecuteBatchGetAsync(BatchGet[], CancellationToken) Issues a batch-get request with multiple batches. Results are stored in the individual batches.
Public Method ExecuteBatchWrite(BatchWrite[]) Issues a batch-write request with multiple batches.
Public Method ExecuteBatchWriteAsync(BatchWrite[], CancellationToken) Issues a batch-write request with multiple batches.
Public Method FromDocument(Document)
Public Method FromDocument(Document, DynamoDBOperationConfig)
Public Method FromDocuments(IEnumerable<Document>)
Public Method FromDocuments(IEnumerable<Document>, DynamoDBOperationConfig)
Public Method FromQuery(QueryOperationConfig)
Public Method FromQuery(QueryOperationConfig, DynamoDBOperationConfig)
Public Method FromQueryAsync(QueryOperationConfig, DynamoDBOperationConfig)
Public Method FromScan(ScanOperationConfig, DynamoDBOperationConfig)
Public Method FromScanAsync(ScanOperationConfig, DynamoDBOperationConfig)
Public Method GetTargetTable(DynamoDBOperationConfig)
Public Method Load(object)
Public Method Load(object, DynamoDBOperationConfig)
Public Method Load(object, object)
Public Method Load(object, object, DynamoDBOperationConfig)
Public Method Load(T, DynamoDBOperationConfig)
Public Method LoadAsync(object, CancellationToken)
Public Method LoadAsync(object, DynamoDBOperationConfig, CancellationToken)
Public Method LoadAsync(object, object, CancellationToken)
Public Method LoadAsync(object, object, DynamoDBOperationConfig, CancellationToken)
Public Method LoadAsync(T, CancellationToken)
Public Method LoadAsync(T, DynamoDBOperationConfig, CancellationToken)
Public Method Query(object)
Public Method Query(object, DynamoDBOperationConfig)
Public Method Query(object, QueryOperator, Object[])
Public Method Query(object, QueryOperator, IEnumerable<Object>, DynamoDBOperationConfig)
Public Method QueryAsync(object, DynamoDBOperationConfig)
Public Method QueryAsync(object, QueryOperator, IEnumerable<Object>, DynamoDBOperationConfig)
Public Method Save(T, DynamoDBOperationConfig)
Public Method SaveAsync(T, CancellationToken)
Public Method SaveAsync(T, DynamoDBOperationConfig, CancellationToken)
Public Method Scan(ScanCondition[])
Public Method Scan(IEnumerable<ScanCondition>, DynamoDBOperationConfig)
Public Method ScanAsync(IEnumerable<ScanCondition>, DynamoDBOperationConfig)
Public Method ToDocument(T)
Public Method ToDocument(T, DynamoDBOperationConfig)

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5

.NET for Windows Store apps:
Supported in: Windows 8.1, Windows 8

.NET for Windows Phone:
Supported in: Windows Phone 8.1, Windows Phone 8