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 3.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() 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.
Public Method DynamoDBContext(IAmazonDynamoDB, DynamoDBContextConfig) Constructs a DynamoDBContext object with the specified DynamoDB client and 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 BeginDelete(T, AsyncCallback, object)
Public Method BeginDelete(T, DynamoDBOperationConfig, AsyncCallback, object)
Public Method BeginDelete(object, AsyncCallback, object)
Public Method BeginDelete(object, DynamoDBOperationConfig, AsyncCallback, object)
Public Method BeginDelete(object, object, AsyncCallback, object)
Public Method BeginDelete(object, object, DynamoDBOperationConfig, AsyncCallback, object)
Public Method BeginExecuteBatchGet(BatchGet[], AsyncCallback, object) Initiates the asynchronous execution of the ExecuteBatchGet operation. Amazon.DynamoDBv2.DataModel.DynamoDBContext.ExecuteBatchGet(Amazon.DynamoDBv2.DataModel.BatchGet[])
Public Method BeginExecuteBatchWrite(BatchWrite[], AsyncCallback, object) Initiates the asynchronous execution of the ExecuteBatchWrite operation. Amazon.DynamoDBv2.DataModel.DynamoDBContext.ExecuteBatchWrite(Amazon.DynamoDBv2.DataModel.BatchWrite[])
Public Method BeginLoad(object, AsyncCallback, object)
Public Method BeginLoad(object, object, AsyncCallback, object)
Public Method BeginLoad(object, DynamoDBOperationConfig, AsyncCallback, object)
Public Method BeginLoad(object, object, DynamoDBOperationConfig, AsyncCallback, object)
Public Method BeginLoad(T, AsyncCallback, object)
Public Method BeginLoad(T, DynamoDBOperationConfig, AsyncCallback, object)
Public Method BeginSave(T, AsyncCallback, object)
Public Method BeginSave(T, DynamoDBOperationConfig, AsyncCallback, object)
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 Dispose() Disposes of all managed and unmanaged resources.
Public Method EndDelete(IAsyncResult) Finishes the asynchronous execution of the Delete operation. Amazon.DynamoDBv2.DataModel.DynamoDBContext.Delete``1(``0)
Public Method EndExecuteBatchGet(IAsyncResult) Finishes the asynchronous execution of the ExecuteBatchGet operation. Amazon.DynamoDBv2.DataModel.DynamoDBContext.ExecuteBatchGet(Amazon.DynamoDBv2.DataModel.BatchGet[])
Public Method EndExecuteBatchWrite(IAsyncResult) Finishes the asynchronous execution of the ExecuteBatchWrite operation. Amazon.DynamoDBv2.DataModel.DynamoDBContext.ExecuteBatchWrite(Amazon.DynamoDBv2.DataModel.BatchWrite[])
Public Method EndLoad(IAsyncResult)
Public Method EndSave(IAsyncResult) Finishes the asynchronous execution of the Save operation. Amazon.DynamoDBv2.DataModel.DynamoDBContext.Save``1(``0)
Public Method ExecuteBatchGet(BatchGet[]) 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 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)
Public Method FromQueryAsync(QueryOperationConfig, DynamoDBOperationConfig)
Public Method FromScan(ScanOperationConfig)
Public Method FromScan(ScanOperationConfig, DynamoDBOperationConfig)
Public Method FromScanAsync(ScanOperationConfig)
Public Method FromScanAsync(ScanOperationConfig, DynamoDBOperationConfig)
Public Method GetTargetTable()
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)
Public Method Load(T, DynamoDBOperationConfig)
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)
Public Method QueryAsync(object, DynamoDBOperationConfig)
Public Method QueryAsync(object, QueryOperator, Object[])
Public Method QueryAsync(object, QueryOperator, IEnumerable<Object>, DynamoDBOperationConfig)
Public Method Save(T)
Public Method Save(T, DynamoDBOperationConfig)
Public Method Scan(ScanCondition[])
Public Method Scan(IEnumerable<ScanCondition>, DynamoDBOperationConfig)
Public Method ScanAsync(ScanCondition[])
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