Interface IOrderingExpressionParser
Parser for converting OrderBy expressions to OrderingExpression
public interface IOrderingExpressionParser
Methods
ParseMultipleOrderings<TProps>(IEnumerable<(LambdaExpression KeySelector, SortDirection Direction)>)
Parse multiple sorting
IReadOnlyList<OrderingExpression> ParseMultipleOrderings<TProps>(IEnumerable<(LambdaExpression KeySelector, SortDirection Direction)> orderings) where TProps : class
ParseOrdering<TProps, TKey>(Expression<Func<TProps, TKey>>, SortDirection)
Parse sorting expression (Props fields)
OrderingExpression ParseOrdering<TProps, TKey>(Expression<Func<TProps, TKey>> keySelector, SortDirection direction) where TProps : class
ParseRedbOrdering<TKey>(Expression<Func<IRedbObject, TKey>>, SortDirection)
🆕 Parse sorting expression by base IRedbObject fields (id, name, date_create, etc.)
OrderingExpression ParseRedbOrdering<TKey>(Expression<Func<IRedbObject, TKey>> keySelector, SortDirection direction)