共用方式為


DbExpressionBuilder.ThenBy 方法

定義

多載

ThenBy(DbSortExpression, Func<DbExpression,DbExpression>)

建立新的 DbSortExpression ,其中包含指定順序輸入集的排序次序,以及以遞增排序次序和預設定序的指定排序索引鍵。

ThenBy(DbSortExpression, Func<DbExpression,DbExpression>, String)

建立新的 DbSortExpression ,其中包含指定順序輸入集的排序次序,以及以遞增排序次序的指定排序索引鍵和指定的定序。

ThenBy(DbSortExpression, Func<DbExpression,DbExpression>)

建立新的 DbSortExpression ,其中包含指定順序輸入集的排序次序,以及以遞增排序次序和預設定序的指定排序索引鍵。

public static System.Data.Entity.Core.Common.CommandTrees.DbSortExpression ThenBy (this System.Data.Entity.Core.Common.CommandTrees.DbSortExpression source, Func<System.Data.Entity.Core.Common.CommandTrees.DbExpression,System.Data.Entity.Core.Common.CommandTrees.DbExpression> sortKey);
static member ThenBy : System.Data.Entity.Core.Common.CommandTrees.DbSortExpression * Func<System.Data.Entity.Core.Common.CommandTrees.DbExpression, System.Data.Entity.Core.Common.CommandTrees.DbExpression> -> System.Data.Entity.Core.Common.CommandTrees.DbSortExpression
<Extension()>
Public Function ThenBy (source As DbSortExpression, sortKey As Func(Of DbExpression, DbExpression)) As DbSortExpression

參數

source
DbSortExpression

指定已排序輸入集的 DbSortExpression。

sortKey
Func<DbExpression,DbExpression>

方法,指定如何根據輸入集成員來衍生其他排序索引鍵運算式。 這個方法必須產生具有可比較順序之結果型別的運算式,這個字串結果型別會提供排序索引鍵定義。

傳回

新的 DbSortExpression,表示新的整體 order-by 作業。

例外狀況

sortKey 所產生的運算式為 null。

sortKey 沒有可比較順序的結果類型。

適用於

ThenBy(DbSortExpression, Func<DbExpression,DbExpression>, String)

建立新的 DbSortExpression ,其中包含指定順序輸入集的排序次序,以及以遞增排序次序的指定排序索引鍵和指定的定序。

public static System.Data.Entity.Core.Common.CommandTrees.DbSortExpression ThenBy (this System.Data.Entity.Core.Common.CommandTrees.DbSortExpression source, Func<System.Data.Entity.Core.Common.CommandTrees.DbExpression,System.Data.Entity.Core.Common.CommandTrees.DbExpression> sortKey, string collation);
static member ThenBy : System.Data.Entity.Core.Common.CommandTrees.DbSortExpression * Func<System.Data.Entity.Core.Common.CommandTrees.DbExpression, System.Data.Entity.Core.Common.CommandTrees.DbExpression> * string -> System.Data.Entity.Core.Common.CommandTrees.DbSortExpression
<Extension()>
Public Function ThenBy (source As DbSortExpression, sortKey As Func(Of DbExpression, DbExpression), collation As String) As DbSortExpression

參數

source
DbSortExpression

指定已排序輸入集的 DbSortExpression。

sortKey
Func<DbExpression,DbExpression>

方法,指定如何根據輸入集成員來衍生其他排序索引鍵運算式。 這個方法必須產生具有可比較順序之結果型別的運算式,這個字串結果型別會提供排序索引鍵定義。

collation
String

要做為排序依據的定序。

傳回

新的 DbSortExpression,表示新的整體 order-by 作業。

例外狀況

sortKey 所產生的運算式為 null。

sortKey 所產生的運算式沒有可比較順序的字串結果類型。

定序是空的,或只包含空白字元。

適用於