Class OrderingExpression
Sorting information.
Supports simple property sorting and complex expressions (arithmetic, functions).
public record OrderingExpression : IEquatable<OrderingExpression>
Inheritance
Implements
Properties
Expression
Optional: Complex expression for Pro features (p.Price * 2, LOWER(p.Name))
public ValueExpression? Expression { get; init; }
HasExpression
Returns true if this ordering uses complex expression (arithmetic/functions).
public bool HasExpression { get; }
Methods
GetFieldPaths()
Extracts all field paths used in this ordering (for field resolution).
public IEnumerable<string> GetFieldPaths()
Constructors
OrderingExpression(PropertyInfo, SortDirection, ValueExpression?)
Sorting information.