Pip-Services-Commons-Dotnet
Public Member Functions | Properties | List of all members
PipServices3.Commons.Data.SortField Class Reference

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]
 

Detailed Description

Defines a field name and order used to sort query results.

var filter = FilterParams.fromTuples("type", "Type1");
var paging = new PagingParams(0, 100);
var sorting = new SortingParams(new SortField("create_time", true));
myDataClient.GetDataByFilter(filter, paging, sorting);

See SortParams

Constructor & Destructor Documentation

◆ SortField()

PipServices3.Commons.Data.SortField.SortField ( string  name = null,
bool  ascending = true 
)

Creates a new instance and assigns its values.

Parameters
namethe name of the field to sort by.
ascendingtrue to sort in ascending order, and false to sort in descending order.

Property Documentation

◆ Ascending

bool PipServices3.Commons.Data.SortField.Ascending
getset

The flag to define sorting order. True to sort ascending, false to sort descending

◆ Name

string PipServices3.Commons.Data.SortField.Name
getset

The field name to sort by


The documentation for this class was generated from the following file: