Class OrderingExpression

Assembly: redb.Core.dll

Sorting information.
Supports simple property sorting and complex expressions (arithmetic, functions).

public record OrderingExpression : IEquatable<OrderingExpression>

Inheritance

ObjectOrderingExpression

Implements

Properties

Direction

Sort direction (Ascending/Descending)

public SortDirection Direction { get; init; }

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; }

Property

Property for simple sorting (Name, Price, etc.)

public PropertyInfo Property { get; init; }

Methods

GetFieldPaths()

Extracts all field paths used in this ordering (for field resolution).

public IEnumerable<string> GetFieldPaths()

Constructors