Class PartitionKeyAttribute
Indicates that the property or field is part of the Partition Key
Inherited Members
Namespace: Cassandra.Mapping.Attributes
Assembly: Cassandra.dll
Syntax
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field, Inherited = true)]
public class PartitionKeyAttribute : Attribute
Constructors
PartitionKeyAttribute(int)
Specify the primary key column names (in order) for the table.
Declaration
public PartitionKeyAttribute(int index = 0)
Parameters
Type | Name | Description |
---|---|---|
int | index | The index of the key, relative to the other partition keys. |
Properties
Index
The index of the key, relative to the other partition keys.
Declaration
public int Index { get; set; }
Property Value
Type | Description |
---|---|
int |