Assembly: OptimaJet.Workflow.Core
Class Sorting
OptimaJet.Workflow.Core.Persistence.Sorting
Specifies the field and direction used to sort a collection of records.
Namespace: OptimaJet.Workflow.Core.Persistence
Properties
public string FieldName { get; } #Gets the name of the field used for sorting.
public SortDirection SortDirection { get; } #Gets the direction used for sorting.
Methods
public static Sorting Create(string fieldName, SortDirection sortDirection = SortDirection.Asc) #Creates a
Sorting instance for the specified field.
Parameters
fieldName
String
The name of the field to sort by.
sortDirection
SortDirection
Returns
Sorting
A
Sorting instance configured with
fieldName and
sortDirection.