Class DslIndexKeyDefinition
Namespace: Casewhere.Runtime.DSL
Assembly: Casewhere.Runtime.dll
The index key definition contains attribute name and index type
public class DslIndexKeyDefinition
Inheritance
object ← DslIndexKeyDefinition
Inherited Members
object.ToString(), object.Equals(object), object.Equals(object, object), object.ReferenceEquals(object, object), object.GetHashCode(), object.GetType(), object.MemberwiseClone()
Extension Methods
ObjectExtension.ConvertToBsonValue(object), EnumExtensions.DeepClone<DslIndexKeyDefinition>(DslIndexKeyDefinition)
Constructors
DslIndexKeyDefinition(string, int)
Index Key definition
public DslIndexKeyDefinition(string name, int indexType = 1)
Parameters
name
string
name of Attribute
indexType
int
sort type: Ascending = 1, Descending = -1
Properties
IndexType
The type of index for that attribute. For ascending index, specify a value of 1. For descending index, specify a value of -1.
[Required]
public int IndexType { get; set; }
Property Value
Name
Attribute name that include in the index
[Required]
public string Name { get; set; }