CARVIEW |
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.
DynamoDBContextConfig
Class
Configuration object for setting options on the Amazon.DynamoDBv2.DataModel.DynamoDBContext that will apply to all operations that use the context object.
Inheritance Hierarchy
Namespace: Amazon.DynamoDBv2.DataModel
Assembly: AWSSDK.DynamoDBv2.dll
Version: 3.x.y.z
Syntax
public class DynamoDBContextConfig
The DynamoDBContextConfig type exposes the following members
Constructors
Name | Description | |
---|---|---|
![]() |
DynamoDBContextConfig() |
Default constructor |
Properties
Name | Type | Description | |
---|---|---|---|
![]() |
ConsistentRead | System.Nullable<System.Boolean> |
Property that directs Amazon.DynamoDBv2.DataModel.DynamoDBContext to use consistent reads. If property is not set, behavior defaults to non-consistent reads. |
![]() |
Conversion | Amazon.DynamoDBv2.DynamoDBEntryConversion |
Conversion specification which controls how conversion between .NET and DynamoDB types happens. |
![]() |
DerivedTypeAttributeName | System.String |
Gets or sets the attribute name used to store the type discriminator for polymorphic types in DynamoDB. |
![]() |
DisableFetchingTableMetadata | System.Nullable<System.Boolean> |
If true disables fetching table metadata automatically from DynamoDB. Table metadata must be defined by Amazon.DynamoDBv2.DataModel.DynamoDBAttribute attributes and/or in Amazon.AWSConfigsDynamoDB. |
![]() |
IgnoreNullValues | System.Nullable<System.Boolean> |
Property that directs Amazon.DynamoDBv2.DataModel.DynamoDBContext to ignore null values on attributes during a Save operation. If the property is false (or not set), null values will be interpreted as directives to delete the specific attribute. |
![]() |
IsEmptyStringValueEnabled | System.Nullable<System.Boolean> |
Property that directs Amazon.DynamoDBv2.DataModel.DynamoDBContext to enable empty string values on attributes during a Save operation. If the property is false (or not set), empty string values will be interpreted as null values. |
![]() |
MetadataCachingMode | System.Nullable<Amazon.DynamoDBv2.MetadataCachingMode> |
The object persistence model API relies on an internal cache of the DynamoDB table's metadata to construct and validate requests. This controls how the cache key is derived, which influences when the SDK will call IAmazonDynamoDB.DescribeTable(string) internally to populate the cache. |
![]() |
RetrieveDateTimeInUtc | System.Nullable<System.Boolean> |
If true, all System.DateTime properties are retrieved in UTC timezone while reading data from DynamoDB. Else, the local timezone is used. |
![]() |
SkipVersionCheck | System.Nullable<System.Boolean> |
Property that directs Amazon.DynamoDBv2.DataModel.DynamoDBContext to skip version checks when saving or deleting an object with a version attribute. If property is not set, version checks are performed. |
![]() |
TableNamePrefix | System.String |
Property that directs Amazon.DynamoDBv2.DataModel.DynamoDBContext to prefix all table names with a specific string. If property is null or empty, no prefix is used and default table names are used. |
Version Information
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.7.2 and newer