Class Sort
- Namespace
- GroupeIsa.Neos.Designer.UIAbstractions.API
- Assembly
- GroupeIsa.Neos.Designer.UIAbstractions.dll
Represents the sort direction of a property.
[ExcludeFromCodeCoverage]
public class Sort
- Inheritance
-
Sort
- Inherited Members
Constructors
Sort()
Initializes a new instance of the Sort class.
public Sort()
Sort(string, SortDirection)
Initializes a new instance of the Sort class.
public Sort(string propertyName, SortDirection direction)
Parameters
propertyNamestringName of the property.
directionSortDirectionDirection of the sort.
Properties
Direction
Gets or sets the sorting direction.
public SortDirection Direction { get; set; }
Property Value
PropertyName
Gets or sets the name of property.
public string PropertyName { get; set; }
Property Value
Methods
ToODataString()
Converts the sort to a OData string.
[SuppressMessage("Minor Code Smell", "S2325:Methods and properties that don't access instance data should be static", Justification = "Transpilation")]
public string ToODataString()
Returns
- string
The OData string.
ToString()
Converts the sort to a string.
public override string ToString()
Returns
- string
The string.