Table of Contents

Class DynamoDbDocumentAttribute

Namespace
DynaSharp.Mapping
Assembly
DynaSharp.dll

Maps a type to a DynamoDB map, for a type nested in an entity such as an address. A document has no keys and no discriminator. The type must be partial, as must its containing types.

[AttributeUsage(AttributeTargets.Class|AttributeTargets.Struct, AllowMultiple = false, Inherited = false)]
public sealed class DynamoDbDocumentAttribute : Attribute
Inheritance
DynamoDbDocumentAttribute
Inherited Members

Remarks

A document stores what an entity stores: every public instance property that can be read and that has a setter or a matching constructor parameter becomes an attribute of the map, and null values are left out of it. A get-only computed property is not stored, and its getter computes it again after a read; DynamoDbAttributeAttribute on it stores it, written and never read.

A type is either an entity or a document, never both. An entity can be nested in another entity without this attribute, which DYNA031 reports as a warning.

Constructors

DynamoDbDocumentAttribute()

public DynamoDbDocumentAttribute()