อ่านในภาษาอังกฤษ แก้ไข

แชร์ผ่าน


DbExpressionBuilder.Sort Method

Definition

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

C#
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);

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

ผลิตภัณฑ์ เวอร์ชัน
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1