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

Controls how .NET property names are cased when mapped to DynamoDB attribute names by the object persistence model. Set via Amazon.DynamoDBv2.DataModel.DynamoDBTableAttribute.AttributeCasing.

Inheritance Hierarchy

System.Object
  System.ValueType
    System.Enum
      Amazon.DynamoDBv2.DataModel.CaseMode

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

Syntax

C#
public enum CaseMode

The CaseMode type exposes the following members

Members

NameDescription
Enum CamelCase

Attribute names are converted to camelCase at every level of the object graph, including nested objects stored as DynamoDB Maps. This is the recommended value for consistent camelCase output.

Enum LegacyCamelCase

Reproduces the exact (asymmetric) behavior of the obsolete Amazon.DynamoDBv2.DataModel.DynamoDBTableAttribute.LowerCamelCaseProperties flag set to true: only the root object's attribute names are camelCased, while nested objects stored as DynamoDB Maps keep their PascalCase attribute names. This value exists solely as a compatibility escape hatch for applications whose existing data already relies on this mixed casing. It is intentionally marked [Obsolete] so new code is steered toward Amazon.DynamoDBv2.DataModel.CaseMode.CamelCase or Amazon.DynamoDBv2.DataModel.CaseMode.PascalCase. New applications should not use it.

Enum PascalCase

Attribute names match the .NET property names unchanged (PascalCase). Setting this explicitly on a nested type blocks it from inheriting an enclosing type's casing.

Enum Unset

No casing was specified for this type (the default). Behaves as Amazon.DynamoDBv2.DataModel.CaseMode.PascalCase at the root, but - unlike an explicit Amazon.DynamoDBv2.DataModel.CaseMode.PascalCase - a nested type left Amazon.DynamoDBv2.DataModel.CaseMode.Unset inherits an enclosing type's casing (for example Amazon.DynamoDBv2.DataModel.CaseMode.CamelCase).

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