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.
Indicates that the properties of the decorated field or property type should be "flattened" into the parent object's attribute structure in DynamoDB. When applied, all public properties of the referenced type are serialized as individual top-level attributes of the parent item, rather than as a nested object or map.
Example:
public class Address { public string Street { get; set; } public string City { get; set; } } public class Person { public string Name { get; set; } [DynamoDBFlatten] public Address Address { get; set; } }In this example, the
Person
table will have top-level attributes for Name
, Street
, and City
.
Namespace: Amazon.DynamoDBv2.DataModel
Assembly: AWSSDK.DynamoDBv2.dll
Version: 3.x.y.z
public sealed class DynamoDBFlattenAttribute : DynamoDBAttribute
The DynamoDBFlattenAttribute type exposes the following members
Name | Description | |
---|---|---|
![]() |
DynamoDBFlattenAttribute() |
Name | Type | Description | |
---|---|---|---|
![]() |
TypeId | System.Object | Inherited from System.Attribute. |
.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