Class DynamoDBContextConfig
Settings for DynamoDBContext.
public class DynamoDBContextConfig
- Inheritance
-
DynamoDBContextConfig
- Inherited Members
Properties
TableAliases
A string-to-string dictionary (From-Table to To-Table) used by DynamoDBContext to use a different table from one that is configured for a type.
Remapping is done before applying TableNamePrefix.
public Dictionary<string, string> TableAliases { get; }
Property Value
TableNamePrefix
Configures the default TableNamePrefix that the DynamoDBContext will use if not manually configured.
TableNamePrefix is used after TableAliases have been applied.
public string TableNamePrefix { get; set; }
Property Value
TypeMappings
A Type-to-TypeMapping (type to TypeMapping defining its DynamoDB conversion) used by DynamoDBContext to modify or configure a particular type.
public Dictionary<Type, TypeMapping> TypeMappings { get; }
Property Value
Methods
AddAlias(TableAlias)
Adds a TableAlias to the TableAliases property. An exception is thrown if there is already a TableAlias with the same FromTable configured.
public void AddAlias(TableAlias tableAlias)
Parameters
tableAlias
TableAlias
AddMapping(TypeMapping)
Adds a TypeMapping to the TypeMappings property. An exception is thrown if there is already a TypeMapping with the same Type configured.
public void AddMapping(TypeMapping typeMapping)
Parameters
typeMapping
TypeMapping