Class DynamoDbAttributeAttribute
Sets the DynamoDB attribute name of a property. Without it the name is the C# property name, as Naming converts it, and unchanged by default.
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = false)]
public sealed class DynamoDbAttributeAttribute : Attribute
- Inheritance
-
DynamoDbAttributeAttribute
- Inherited Members
Remarks
It also forces a property to be stored that would not be otherwise. A non-public property is mapped like any other. A computed property is written but never read.
Constructors
DynamoDbAttributeAttribute(string)
Initializes a new instance of the DynamoDbAttributeAttribute class.
public DynamoDbAttributeAttribute(string name)
Parameters
namestringThe attribute name: 1 to 65535 bytes of UTF-8, and not the name of the entity's discriminator attribute.
Properties
Name
Gets the attribute name.
public string Name { get; }