DbExpressionBuilder.Sort Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om