AWS SDK Version 3 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.

A collection of converters capable of converting between .NET and DynamoDB objects.

Inheritance Hierarchy

System.Object
  Amazon.DynamoDBv2.DynamoDBEntryConversion

Namespace: Amazon.DynamoDBv2
Assembly: AWSSDK.DynamoDBv2.dll
Version: 3.x.y.z

Syntax

C#
public class DynamoDBEntryConversion

The DynamoDBEntryConversion type exposes the following members

Properties

NameTypeDescription
Public Property Static Property V1 Amazon.DynamoDBv2.DynamoDBEntryConversion

Default conversion before 2014 L, M, BOOL, NULL support. The following .NET types are converted into the following DynamoDB types: Number types (byte, int, float, decimal, etc.) are converted to N String and char are converted to S Bool is converted to N (0=false, 1=true) DateTime and Guid are converto to S MemoryStream and byte[] are converted to B List, HashSet, and array of numerics types are converted to NS List, HashSet, and array of string-based types are converted to SS List, HashSet, and array of binary-based types are converted to BS Dictionary{string,object} are converted to M

Public Property Static Property V2 Amazon.DynamoDBv2.DynamoDBEntryConversion

Schema fully supporting 2014 L, M, BOOL, NULL additions. The following .NET types are converted into the following DynamoDB types: Number types (byte, int, float, decimal, etc.) are converted to N String and char are converted to S Bool is converted to BOOL DateTime and Guid are converto to S MemoryStream and byte[] are converted to B HashSet of numerics types are converted to NS HashSet of string-based types are converted to SS HashSet of binary-based types are converted to BS List and array of numerics, string-based types, and binary-based types are converted to L type. Dictionary{string,object} are converted to M

Methods

Note:

Asynchronous operations (methods ending with Async) in the table below are for .NET 4.5 or higher. For .NET 3.5 the SDK follows the standard naming convention of BeginMethodName and EndMethodName to indicate asynchronous operations - these method pairs are not shown in the table below.

NameDescription
Public Method ConvertFromEntry(DynamoDBEntry)

Convert the DynamoDBEntry to the specified type.

Public Method ConvertFromEntry(Type, DynamoDBEntry)

Convert the DynamoDBEntry to the specified type.

Public Method ConvertToEntry(TInput)

Convert value to DynamoDBEntry

Public Method ConvertToEntry(Type, object)

Convert value to DynamoDBEntry

Public Method TryConvertFromEntry(DynamoDBEntry, out TOutput)

Try to convert the DynamoDBEntry to the specified type. If it fails the method returns false.

Public Method TryConvertFromEntry(Type, DynamoDBEntry, out object)

Try to convert the DynamoDBEntry to the specified type. If it fails the method returns false.

Public Method TryConvertToEntry(TInput, out DynamoDBEntry)

Try to convert value to DynamoDBEntry. If it fails the method returns false.

Public Method TryConvertToEntry(Type, object, out DynamoDBEntry)

Try to convert value to DynamoDBEntry. If it fails the method returns false.

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

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