Class ClusteringKeyAttribute
Indicates that the property or field is part of the Clustering Key
Inheritance
ClusteringKeyAttribute
Assembly: Cassandra.dll
Syntax
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field, Inherited = true)]
public class ClusteringKeyAttribute : Attribute
Constructors
ClusteringKeyAttribute(int)
Declaration
public ClusteringKeyAttribute(int index = 0)
Parameters
Type |
Name |
Description |
int |
index |
|
ClusteringKeyAttribute(int, SortOrder)
Declaration
public ClusteringKeyAttribute(int index, SortOrder order)
Parameters
Properties
ClusteringSortOrder
Gets or sets the clustering order
Declaration
public SortOrder ClusteringSortOrder { get; set; }
Property Value
Index
Index of the clustering key, relative to the other clustering keys
Declaration
public int Index { get; set; }
Property Value
Name
Declaration
public string Name { get; set; }
Property Value