Class ClusteringKeyAttribute
Indicates that the property or field is part of the Clustering Key
Inherited Members
Namespace: Cassandra.Data.Linq
Assembly: Cassandra.dll
Syntax
[Obsolete("Linq attributes are deprecated, use mapping attributes defined in Cassandra.Mapping.Attributes instead.")]
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field, Inherited = true, AllowMultiple = true)]
public class ClusteringKeyAttribute : Attribute
Constructors
ClusteringKeyAttribute(int)
Declaration
public ClusteringKeyAttribute(int index)
Parameters
Type | Name | Description |
---|---|---|
int | index |
ClusteringKeyAttribute(int, SortOrder)
Declaration
public ClusteringKeyAttribute(int index, SortOrder order)
Parameters
Type | Name | Description |
---|---|---|
int | index | |
SortOrder | order |
ClusteringKeyAttribute(int, string)
Sets the clustering key and optionally a clustering order for it.
Declaration
[Obsolete("Use SortOrder instead")]
public ClusteringKeyAttribute(int index, string order)
Parameters
Type | Name | Description |
---|---|---|
int | index | Index of the clustering key, relative to the other clustering keys |
string | order | Use "DESC" for descending order and "ASC" for ascending order. |
Properties
ClusteringOrder
Gets or sets the string representation of the clustering order
Declaration
[Obsolete("Use ClusteringSortOrder instead")]
public string ClusteringOrder { get; set; }
Property Value
Type | Description |
---|---|
string |
ClusteringSortOrder
Gets or sets the clustering order
Declaration
public SortOrder ClusteringSortOrder { get; set; }
Property Value
Type | Description |
---|---|
SortOrder |
Index
Index of the clustering key, relative to the other clustering keys
Declaration
public int Index { get; set; }
Property Value
Type | Description |
---|---|
int |
Name
Name of the column
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string |