DbExpressionBuilder.Sort Metodo

Definizione

Crea un nuovo oggetto DbSortExpression che ordina il set di input specificato in base alle specifiche di ordinamento specificate.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbSortExpression ^ Sort(System::Data::Common::CommandTrees::DbExpressionBinding ^ input, System::Collections::Generic::IEnumerable<System::Data::Common::CommandTrees::DbSortClause ^> ^ sortOrder);
public static System.Data.Common.CommandTrees.DbSortExpression Sort (this System.Data.Common.CommandTrees.DbExpressionBinding input, System.Collections.Generic.IEnumerable<System.Data.Common.CommandTrees.DbSortClause> sortOrder);
static member Sort : System.Data.Common.CommandTrees.DbExpressionBinding * seq<System.Data.Common.CommandTrees.DbSortClause> -> System.Data.Common.CommandTrees.DbSortExpression
<Extension()>
Public Function Sort (input As DbExpressionBinding, sortOrder As IEnumerable(Of DbSortClause)) As DbSortExpression

Parametri

input
DbExpressionBinding

Associazione a un'espressione che specifica il set di input.

sortOrder
IEnumerable<DbSortClause>

Elenco di specifiche di ordinamento che determinano come ordinare gli elementi del set di input.

Restituisce

Nuovo DbSortExpression che rappresenta l'operazione Sort.

Eccezioni

input o sortOrder è null o sortOrder contiene un valore null.

sortOrder è vuoto.

Si applica a