SortItem Class
- Namespace:
- Weavy.Core.Models
- Assembly:
- Weavy.Core.dll
Represents a sort order in a search. One or more SortItem objects can be added to a Query.
public class SortItem
- Inheritance:
- System.Object → SortItem
Constructors
Sort |
Initializes a new instance of the SortItem class. |
Sort |
Initializes a new instance of the SortItem class with the specified column name. |
Sort |
Initializes a new instance of the SortItem class with the specified column name and SortDirection. |
Properties
Column | Gets or sets the column to sort by. |
Direction | Gets or sets the direction to sort by (ascending or descending). |
Methods
To |
Returns a string that represents the current SortItem. |
Extension Methods
Is |
Gets a value indicating if the specified value has the default value of the generic type. |
Serialize(object) | Serializes an object, or graph of connected objects, to a byte array. |
Serialize |
Serializes an object, or graph of connected objects, to a json string. |
Is |
Determines whether the specified object is valid by evaluating each ValidationAttribute instance that is attached to the object type. |