Table of Contents

Class SetPropertyConverter<TCollection, TElement>

Namespace
Amazon.DynamoDBv2
Assembly
AWSSDK.DynamoDBv2.dll

Class that implements IPropertyConverter to convert collections to PrimitiveList types, which are then stored as sets (NS, SS, BS) in DynamoDB.

Use this converter to bypass the default schema behavior for a particular property. The Conversion property can be customized in the constructor of a subclass to use a different conversion scheme for converting individual elements. The default value for this field is the standard V1 conversion.

public class SetPropertyConverter<TCollection, TElement> : IPropertyConverter where TCollection : ICollection<TElement>, new()

Type Parameters

TCollection
TElement
Inheritance
SetPropertyConverter<TCollection, TElement>
Implements
Derived
Inherited Members

Constructors

SetPropertyConverter()

Set the conversion to V1.

public SetPropertyConverter()

Fields

collectionType

Reference to the type object for the TCollection generic.

protected static readonly Type collectionType

Field Value

Type

elementType

Reference to the type object for the TElement generic.

protected static readonly Type elementType

Field Value

Type

Properties

Conversion

Gets and sets the Conversion property.

public DynamoDBEntryConversion Conversion { get; set; }

Property Value

DynamoDBEntryConversion

Methods

FromEntry(DynamoDBEntry)

Convert DyanmoDBEntry to object using the V1 converter rules.

public object FromEntry(DynamoDBEntry entry)

Parameters

entry DynamoDBEntry

Returns

object

ToEntry(object)

Convert object to DynamoDBEntry using the V1 converter rules.

public DynamoDBEntry ToEntry(object value)

Parameters

value object

Returns

DynamoDBEntry