Class OrderByClause.OrderByItem
One property to sort by, and whether it sorts descending.
public class OrderByClause.OrderByItem
- Inheritance
-
OrderByClause.OrderByItem
- Inherited Members
Constructors
OrderByItem(string, bool)
Create a sort term.
public OrderByItem(string propertyPath, bool isDesc)
Parameters
Properties
IsDesc
Whether this path sorts descending.
public bool IsDesc { get; }
Property Value
Property
The resolved property. Set by Validate(Type); null before it runs.
public PropertySignature? Property { get; }
Property Value
PropertyPath
The property path to sort by, without any direction suffix.
public string PropertyPath { get; }
Property Value
Methods
Validate(Type)
Resolve this term's path against the entity type being queried.
public void Validate(Type entityType)
Parameters
entityTypeTypeThe type the query returns.
Exceptions
- Exception
The path does not name a property of that type.