Class PrimaryKeyAttribute
DEPRECATED (use PartitionKeyAttribute and ClusteringKeyAttribute). An attribute used to indicate the primary key column names for the table a POCO is mapped to.
Inherited Members
Namespace: Cassandra.Mapping
Assembly: Cassandra.dll
Syntax
[AttributeUsage(AttributeTargets.Class)]
public class PrimaryKeyAttribute : Attribute
Constructors
PrimaryKeyAttribute(params string[])
Specify the primary key column names (in order) for the table.
Declaration
public PrimaryKeyAttribute(params string[] columnNames)
Parameters
Type | Name | Description |
---|---|---|
string[] | columnNames | The column names for the table's primary key. |
Properties
ColumnNames
The column names of the primary key columns for the table.
Declaration
public string[] ColumnNames { get; }
Property Value
Type | Description |
---|---|
string[] |