Class ClusteringKeyAttribute
Indicates that the property or field is part of the Clustering Key
Inheritance
System.Object
System.Attribute
ClusteringKeyAttribute
Inherited Members
System.Attribute.Equals(System.Object)
System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type, System.Boolean)
System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type, System.Boolean)
System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type, System.Boolean)
System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.Module)
System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type, System.Boolean)
System.Attribute.GetHashCode()
System.Attribute.IsDefaultAttribute()
System.Attribute.IsDefined(System.Reflection.Assembly, System.Type)
System.Attribute.IsDefined(System.Reflection.Assembly, System.Type, System.Boolean)
System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type)
System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type, System.Boolean)
System.Attribute.IsDefined(System.Reflection.Module, System.Type)
System.Attribute.IsDefined(System.Reflection.Module, System.Type, System.Boolean)
System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type)
System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type, System.Boolean)
System.Attribute.Match(System.Object)
System.Attribute.TypeId
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Dse.Data.Linq
Assembly: Dse.dll
Syntax
[Obsolete("Linq attributes are deprecated, use mapping attributes defined in Dse.Mapping.Attributes instead.")]
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property, Inherited = true, AllowMultiple = true)]
public class ClusteringKeyAttribute : Attribute
Constructors
ClusteringKeyAttribute(Int32)
Declaration
public ClusteringKeyAttribute(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
ClusteringKeyAttribute(Int32, SortOrder)
Declaration
public ClusteringKeyAttribute(int index, SortOrder order)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | |
SortOrder | order |
ClusteringKeyAttribute(Int32, 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 |
---|---|---|
System.Int32 | index | Index of the clustering key, relative to the other clustering keys |
System.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 |
---|---|
System.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 |
---|---|
System.Int32 |
Name
Name of the column
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |