Class SortingAttribute
Namespace: Casewhere.Models.Pages
Assembly: Casewhere.Models.dll
Represents a sorting attribute for the data query.
public class SortingAttribute
Inheritance
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<SortingAttribute>(SortingAttribute)
Constructors
SortingAttribute()
public SortingAttribute()
Properties
Ascending
Gets or sets a value indicating whether the sorting is in ascending order.
public bool Ascending { get; set; }
Property Value
AttributeName
Gets or sets the name of the attribute.
public string AttributeName { get; set; }
Property Value
Methods
ToSortField()
Converts the sorting attribute to a SortField object.
public SortField ToSortField()
Returns
SortField
The SortField object.