Table of Contents

Class PrimaryKeyDefinition

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

Defines the primary key structure of a table, including partition keys and clustering keys with their sort orders.

public class PrimaryKeyDefinition
Inheritance
PrimaryKeyDefinition
Inherited Members

Properties

Keys

The ordered list of partition key column names.

[JsonPropertyName("partitionBy")]
public List<string> Keys { get; set; }

Property Value

List<string>

Sorts

The clustering key columns and their sort directions, ordered by clustering key position.

[JsonIgnore]
public Dictionary<string, SortDirection> Sorts { get; set; }

Property Value

Dictionary<string, SortDirection>