Table of Contents

Class DynamoDBRangeKeyAttribute

Namespace
Amazon.DynamoDBv2.DataModel
Assembly
AWSSDK.DynamoDBv2.dll

DynamoDB property that marks up current member as range key element (for a hash-and-range primary key). At most one member in a class may be marked with this attribute.

Members that are marked as a range key element must be convertible to a Primitive object.

[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field, Inherited = true, AllowMultiple = false)]
public class DynamoDBRangeKeyAttribute : DynamoDBPropertyAttribute
Inheritance
DynamoDBRangeKeyAttribute
Derived
Inherited Members

Constructors

DynamoDBRangeKeyAttribute()

Default constructor

public DynamoDBRangeKeyAttribute()

DynamoDBRangeKeyAttribute(string)

Constructor that specifies an alternate attribute name

public DynamoDBRangeKeyAttribute(string attributeName)

Parameters

attributeName string

Name of attribute to be associated with property or field.

DynamoDBRangeKeyAttribute(string, Type)

Constructor that specifies an alternate attribute name and a custom converter.

Converter must be the type of a class that implements IPropertyConverter.

public DynamoDBRangeKeyAttribute(string attributeName, Type converter)

Parameters

attributeName string

Name of attribute to be associated with property or field.

converter Type

Custom converter type.

DynamoDBRangeKeyAttribute(Type)

Constructor that specifies a custom converter.

Converter must be the type of a class that implements IPropertyConverter.

public DynamoDBRangeKeyAttribute(Type converter)

Parameters

converter Type

Custom converter type.