Edit

Share via


DbExpressionBuilder.Sort Method

Definition

Creates a new DbSortExpression that sorts the given input set by the specified sort specifications.

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

Parameters

input
DbExpressionBinding

An expression binding that specifies the input set.

sortOrder
IEnumerable<DbSortClause>

A list of sort specifications that determine how the elements of the input set should be sorted.

Returns

A new DbSortExpression that represents the sort operation.

Exceptions

input or sortOrder is null, or sortOrder contains null.

sortOrder is empty.

Applies to