IOrderable<TModel> Interface
.NET Standard 2.x
Represents a sortable object that provides methods for adding collations or performing sort.
Namespace: DWNet.Data
Assembly: DWNet.Data.dll
Syntax
public interface IOrderable<TModel>;
Method
| Name | Returns Type | Description |
|---|---|---|
| Sort() | bool | Sorts the object according to the collations you have set. |
| ThenBy<TKey>(Func<TModel, TKey> keySelector) | IOrderable<TModel> | Performs a subsequent ordering of the model objects in the current sortable object in ascending order according to a key. |
| ThenByDescending<TKey>(Func<TModel, TKey> keySelector) | IOrderable<TModel> | Performs a subsequent ordering of the model objects in the current sortable object in descending order according to a key. |
Remarks
The IOrderable<TModel> interface is used together with IModelStore<TModel>. When the IModelStore<TModel> OrderBy or OrderByDescending method is called, an IOrderable<TModel> object is returned.