An ODataQuery<T> ordered by at least one key, to which ThenBy and ThenByDescending add keys.
Namespace: Radzen
Assembly: Radzen.Blazor.dll
public sealed class OrderedODataQuery<T> : ODataQuery<T>| Name | Description |
|---|---|
| T | The entity type of the entity set. |
Orders the entities that the earlier keys leave equal by keySelector ascending.
public OrderedODataQuery<T> ThenBy(Expressions.Expression<Func<T, TKey>> keySelector)
| Type | Name | Description |
|---|---|---|
| Expressions.Expression<Func<T, TKey>> | keySelector | The key, e.g. ticket => ticket.Unit.Code. |
| Type | Description |
|---|---|
| OrderedODataQuery<T> | A new query with the key appended to $orderby. |
Orders the entities that the earlier keys leave equal by keySelector descending.
public OrderedODataQuery<T> ThenByDescending(Expressions.Expression<Func<T, TKey>> keySelector)
| Type | Name | Description |
|---|---|---|
| Expressions.Expression<Func<T, TKey>> | keySelector | The key. |
| Type | Description |
|---|---|
| OrderedODataQuery<T> | A new query with the key appended to $orderby. |