Skip to content

TQueryLinqExtensions_OrderByDescending_K4DUVaMKcDoJwRZgATkVzg

Jacob Spitzer edited this page Aug 28, 2022 · 2 revisions

TQueryLinqExtensions.OrderByDescending<Table,TKey>(DbEc<Table>, Func<Table,TKey>) Method

Sorts the records of a TQuery recordset in descending order according to a key.

public static DbEasyConnect.DbEcOrder<Table> OrderByDescending<Table,TKey>(this DbEasyConnect.DbEc<Table> tQuery, System.Func<Table,TKey> keySelector);

Type parameters

Table
The type of the records of table class. need to be a class with the [Table("")] attribute.

TKey
The type of the key returned by the function that is represented by keySelector.

Parameters

tQuery DbEasyConnect.DbEc<Table>
An DbEc<T> that contains the queryable table to apply the order predicate to.

keySelector System.Func<Table,TKey>
A function to extract a field from an TQuery recordset

Returns

DbEasyConnect.DbEcOrder<Table>
An DbEcOrder<T> whose records are sorted according to a key.

Clone this wiki locally