Skip to content

ListOptions<T>.AddSort method (1 of 3)

Adds a sorting option.

public void AddSort(OrderBy orderBy)
parameter description
orderBy sort option

See Also


ListOptions<T>.AddSort method (2 of 3)

Adds a sorting option.

public OrderBy AddSort(string propertyName, Direction direction = Direction.Ascending)
parameter description
propertyName property name
direction sort direction

See Also


ListOptions<T>.AddSort<TProperty> method (3 of 3)

Adds a sorting option.

public OrderBy AddSort<TProperty>(Expression<Func<T, TProperty>> expression, 
    Direction direction = Direction.Ascending)
parameter description
TProperty target property type
expression target property expression
direction sort direction

See Also