Class ColumnPrimaryKeySortAttribute
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
orderintThe order of this column within the clustering key (1-based).
directionSortDirectionThe sort direction for this clustering key column.
Properties
Direction
The sort direction for this clustering key column.
public SortDirection Direction { get; set; }
Property Value
Order
The order of this column within the clustering key (1-based).
public int Order { get; set; }