Pip-Services-Commons-Dotnet
|
Defines a field name and order used to sort query results. More...
Public Member Functions | |
SortField (string name=null, bool ascending=true) | |
Creates a new instance and assigns its values. More... | |
Properties | |
string | Name [get, set] |
bool | Ascending [get, set] |
Defines a field name and order used to sort query results.
See SortParams
PipServices3.Commons.Data.SortField.SortField | ( | string | name = null , |
bool | ascending = true |
||
) |
Creates a new instance and assigns its values.
name | the name of the field to sort by. |
ascending | true to sort in ascending order, and false to sort in descending order. |
|
getset |
The flag to define sorting order. True to sort ascending, false to sort descending
|
getset |
The field name to sort by