語言

DbGroupExpressionBinding 類別

定義

定義輸入的綁定為 DbGroupByExpression。 除了 的DbExpressionBinding屬性外,DbGroupExpressionBinding 也透過 seealso cref=“P:System.Data.Entity.Core.Common.CommandTrees.DbGroupExpressionBinding.GroupVariable”></seealso> 變數參考,以及<透過 <seealso cref=“P:System.Data.Entity.Core.Common.CommandTrees.DbGroupExpressionBinding.GroupAggregate”></seealso> 屬性存取群組元素。

public sealed class DbGroupExpressionBinding
type DbGroupExpressionBinding = class
Public NotInheritable Class DbGroupExpressionBinding
繼承
DbGroupExpressionBinding

屬性

名稱 Description
Expression

取得 DbExpression 定義輸入集合的 。

GroupAggregate

得到 DbGroupAggregate 代表群中元素集合的 。

GroupVariable

會取得 DbVariableReferenceExpression 參考群組元素變數的 。

GroupVariableName

會取得分配給群組元素變數的名稱。

GroupVariableType

取得群組元素變數的型別元資料。

Variable

得到 DbVariableReferenceExpression 參考元素變數的 。

VariableName

會取得分配給元素變數的名稱。

VariableType

取得元素變數的型別元資料。

擴充方法

名稱 Description
GroupBy(DbGroupExpressionBinding, IEnumerable<KeyValuePair<String,DbExpression>>, IEnumerable<KeyValuePair<String,DbAggregate>>)

建立一個新資料 DbGroupByExpression ,依照指定的群組鍵將輸入集合的元素分組,並套用給定的聚合。

適用於