An ODataQuery<T1, T2> ordered by at least one key, to which ThenBy and ThenByDescending add keys.
Namespace: Radzen
Assembly: Radzen.Blazor.dll
public sealed class OrderedODataQuery<TSource, TResult> : ODataQuery<TSource, TResult>| Name | Description |
|---|---|
| TSource | The entity type of the entity set. |
| TResult | The type of the results. |
Orders the results that the earlier keys leave equal by keySelector ascending.
public OrderedODataQuery<TSource, TResult> ThenBy(Expressions.Expression<Func<TResult, TKey>> keySelector)
| Type | Name | Description |
|---|---|---|
| Expressions.Expression<Func<TResult, TKey>> | keySelector | A group key or an aggregate of the result. |
| Type | Description |
|---|---|
| OrderedODataQuery<TSource, TResult> | A new query with the key appended to $orderby. |
Orders the results that the earlier keys leave equal by keySelector descending.
public OrderedODataQuery<TSource, TResult> ThenByDescending(Expressions.Expression<Func<TResult, TKey>> keySelector)
| Type | Name | Description |
|---|---|---|
| Expressions.Expression<Func<TResult, TKey>> | keySelector | A group key or an aggregate of the result. |
| Type | Description |
|---|---|
| OrderedODataQuery<TSource, TResult> | A new query with the key appended to $orderby. |