OrderedODataQuery<T> Class

An ODataQuery<T> ordered by at least one key, to which ThenBy and ThenByDescending add keys.

Inheritance

Object

ODataQuery<T>

OrderedODataQuery<T>

Namespace: Radzen

Assembly: Radzen.Blazor.dll

Syntax

public sealed class OrderedODataQuery<T> : ODataQuery<T>

Type Parameters

Name Description
TThe entity type of the entity set.

Methods

ThenByLink to this section

Orders the entities that the earlier keys leave equal by keySelector ascending.

Declaration
public OrderedODataQuery<T> ThenBy(Expressions.Expression<Func<T, TKey>> keySelector)
Parameters
Type Name Description
Expressions.Expression<Func<T, TKey>> keySelector The key, e.g. ticket => ticket.Unit.Code.
Returns
Type Description
OrderedODataQuery<T>A new query with the key appended to $orderby.

ThenByDescendingLink to this section

Orders the entities that the earlier keys leave equal by keySelector descending.

Declaration
public OrderedODataQuery<T> ThenByDescending(Expressions.Expression<Func<T, TKey>> keySelector)
Parameters
Type Name Description
Expressions.Expression<Func<T, TKey>> keySelector The key.
Returns
Type Description
OrderedODataQuery<T>A new query with the key appended to $orderby.
An error has occurred. This app may no longer respond until reloaded. Reload 🗙