Table of Contents

Class ColumnPrimaryKeySortAttribute

Namespace
DataStax.AstraDB.DataApi.Tables
Assembly
DataStax.AstraDB.DataApi.dll

Marks a property or field as a clustering key in the table's primary key, with a specified sort order.

[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field, AllowMultiple = false)]
public class ColumnPrimaryKeySortAttribute : Attribute, _Attribute
Inheritance
ColumnPrimaryKeySortAttribute
Implements
Inherited Members

Constructors

ColumnPrimaryKeySortAttribute(int, SortDirection)

Initializes a new instance of ColumnPrimaryKeySortAttribute with the specified order and sort direction.

public ColumnPrimaryKeySortAttribute(int order, SortDirection direction)

Parameters

order int

The order of this column within the clustering key (1-based).

direction SortDirection

The sort direction for this clustering key column.

Properties

Direction

The sort direction for this clustering key column.

public SortDirection Direction { get; set; }

Property Value

SortDirection

Order

The order of this column within the clustering key (1-based).

public int Order { get; set; }

Property Value

int