Table of Contents

Class TypeMapping

Namespace
Amazon.Util
Assembly
AWSSDK.DynamoDBv2.dll

Single DynamoDB type mapping config

public class TypeMapping
Inheritance
TypeMapping
Inherited Members

Constructors

TypeMapping(Type, string)

Initializes a TypeMapping object for a specific type and target table.

public TypeMapping(Type type, string targetTable)

Parameters

type Type

Target type

targetTable string

Target table

Properties

PropertyConfigs

A string-to-PropertyConfig dictionary (property name to PropertyConfig) describing how each property on the type should be treated.

public Dictionary<string, PropertyConfig> PropertyConfigs { get; }

Property Value

Dictionary<string, PropertyConfig>

TargetTable

Target table for the type

public string TargetTable { get; set; }

Property Value

string

Type

Type to which the mapping applies

public Type Type { get; set; }

Property Value

Type

Methods

AddProperty(PropertyConfig)

Adds a PropertyConfig to the PropertyConfigs property. An exception is thrown if there is already a PropertyConfig with the same Name configured.

public void AddProperty(PropertyConfig propertyConfig)

Parameters

propertyConfig PropertyConfig