Class SortCriterion
A class which describes a criteria by which a query will be sorted.
Inheritance
System.Object
SortCriterion
Namespace: MESL.SqlRace.Domain.Query
Assembly: MESL.SqlRace.Domain.dll
Syntax
public class SortCriterion : Object
Constructors
SortCriterion(String, SortOrder)
Initialises a new instance of the SortCriterion class.
Declaration
public SortCriterion(string itemName, SortOrder sortOrder)
Parameters
Type | Name | Description |
---|---|---|
System.String | itemName | Name of the item by which to sort. |
SortOrder | sortOrder | The sort direction. |
Properties
Item
Gets the sort item.
Declaration
public string Item { get; }
Property Value
Type | Description |
---|---|
System.String |
Order
Gets the sort order.
Declaration
public SortOrder Order { get; }
Property Value
Type | Description |
---|---|
SortOrder |
Methods
ToString()
Returns a System.String that represents this instance.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A System.String that represents this instance. |