DbExpressionBuilder.OrderByDescending Metodo

Definizione

Crea un nuovo DbSortExpression oggetto che ordina il set di input specificato in base alla chiave di ordinamento specificata, con ordinamento decrescente e regole di confronto predefinite.

Overload

Nome Descrizione
OrderByDescending(DbExpression, Func<DbExpression,DbExpression>)

Crea un nuovo DbSortExpression oggetto che ordina il set di input specificato in base alla chiave di ordinamento specificata, con ordinamento decrescente e regole di confronto predefinite.

OrderByDescending(DbExpression, Func<DbExpression,DbExpression>, String)

Crea un nuovo DbSortExpression oggetto che ordina il set di input specificato in base alla chiave di ordinamento specificata, con ordinamento decrescente e le regole di confronto specificate.

OrderByDescending(DbExpression, Func<DbExpression,DbExpression>)

Crea un nuovo DbSortExpression oggetto che ordina il set di input specificato in base alla chiave di ordinamento specificata, con ordinamento decrescente e regole di confronto predefinite.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbSortExpression ^ OrderByDescending(System::Data::Common::CommandTrees::DbExpression ^ source, Func<System::Data::Common::CommandTrees::DbExpression ^, System::Data::Common::CommandTrees::DbExpression ^> ^ sortKey);
public static System.Data.Common.CommandTrees.DbSortExpression OrderByDescending(this System.Data.Common.CommandTrees.DbExpression source, Func<System.Data.Common.CommandTrees.DbExpression,System.Data.Common.CommandTrees.DbExpression> sortKey);
static member OrderByDescending : System.Data.Common.CommandTrees.DbExpression * Func<System.Data.Common.CommandTrees.DbExpression, System.Data.Common.CommandTrees.DbExpression> -> System.Data.Common.CommandTrees.DbSortExpression
<Extension()>
Public Function OrderByDescending (source As DbExpression, sortKey As Func(Of DbExpression, DbExpression)) As DbSortExpression

Parametri

source
DbExpression

Espressione che specifica il set di input.

sortKey
Func<DbExpression,DbExpression>

Metodo che specifica come derivare l'espressione di chiave di ordinamento in base a un membro del set di input. Questo metodo deve produrre un'espressione con un tipo di risultato paragonabile all'ordine che fornisce la definizione della chiave di ordinamento.

Valori restituiti

Nuovo DbSortExpression che rappresenta l'operazione order-by.

Eccezioni

source o sortKey è null.

oppure

L'espressione prodotta da sortKey è null.

source non dispone di un tipo di risultato della raccolta.

oppure

L'espressione prodotta da sortKey non ha un tipo di risultato paragonabile all'ordine.

Si applica a

OrderByDescending(DbExpression, Func<DbExpression,DbExpression>, String)

Crea un nuovo DbSortExpression oggetto che ordina il set di input specificato in base alla chiave di ordinamento specificata, con ordinamento decrescente e le regole di confronto specificate.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbSortExpression ^ OrderByDescending(System::Data::Common::CommandTrees::DbExpression ^ source, Func<System::Data::Common::CommandTrees::DbExpression ^, System::Data::Common::CommandTrees::DbExpression ^> ^ sortKey, System::String ^ collation);
public static System.Data.Common.CommandTrees.DbSortExpression OrderByDescending(this System.Data.Common.CommandTrees.DbExpression source, Func<System.Data.Common.CommandTrees.DbExpression,System.Data.Common.CommandTrees.DbExpression> sortKey, string collation);
static member OrderByDescending : System.Data.Common.CommandTrees.DbExpression * Func<System.Data.Common.CommandTrees.DbExpression, System.Data.Common.CommandTrees.DbExpression> * string -> System.Data.Common.CommandTrees.DbSortExpression
<Extension()>
Public Function OrderByDescending (source As DbExpression, sortKey As Func(Of DbExpression, DbExpression), collation As String) As DbSortExpression

Parametri

source
DbExpression

Espressione che specifica il set di input.

sortKey
Func<DbExpression,DbExpression>

Metodo che specifica come derivare l'espressione di chiave di ordinamento in base a un membro del set di input. Questo metodo deve produrre un'espressione con un tipo di risultato paragonabile all'ordine che fornisce la definizione della chiave di ordinamento.

collation
String

Regole di confronto in base a cui eseguire l'ordinamento.

Valori restituiti

Nuovo DbSortExpression che rappresenta l'operazione order-by.

Eccezioni

sourceo sortKeycollation è null.

oppure

L'espressione prodotta da sortKey è null.

source non dispone di un tipo di risultato della raccolta.

oppure

L'espressione prodotta da sortKey non ha un tipo di risultato stringa paragonabile all'ordine.

collation è vuoto o contiene solo spazi.

Si applica a