Class DynamoDBHashKeyAttribute
- Namespace
- Amazon.DynamoDBv2.DataModel
- Assembly
- AWSSDK.DynamoDBv2.dll
DynamoDB property that marks up current member as a hash key element. Exactly one member in a class must be marked with this attribute.
Members that are marked as hash key must be convertible to a Primitive object.
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field, Inherited = true, AllowMultiple = false)]
public class DynamoDBHashKeyAttribute : DynamoDBPropertyAttribute
- Inheritance
-
DynamoDBHashKeyAttribute
- Derived
- Inherited Members
Constructors
DynamoDBHashKeyAttribute()
Default constructor
public DynamoDBHashKeyAttribute()
DynamoDBHashKeyAttribute(string)
Constructor that specifies an alternate attribute name
public DynamoDBHashKeyAttribute(string attributeName)
Parameters
attributeName
stringName of attribute to be associated with property or field.
DynamoDBHashKeyAttribute(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 DynamoDBHashKeyAttribute(string attributeName, Type converter)
Parameters
attributeName
stringName of attribute to be associated with property or field.
converter
TypeCustom converter type.
DynamoDBHashKeyAttribute(Type)
Constructor that specifies a custom converter.
Converter must be the type of a class that implements IPropertyConverter.
public DynamoDBHashKeyAttribute(Type converter)
Parameters
converter
TypeCustom converter type.