DbExpressionBuilder.Aggregate(EdmFunction, DbExpression) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
會產生一個新的 DbFunctionAggregate。
public static System.Data.Entity.Core.Common.CommandTrees.DbFunctionAggregate Aggregate(this System.Data.Entity.Core.Metadata.Edm.EdmFunction function, System.Data.Entity.Core.Common.CommandTrees.DbExpression argument);
static member Aggregate : System.Data.Entity.Core.Metadata.Edm.EdmFunction * System.Data.Entity.Core.Common.CommandTrees.DbExpression -> System.Data.Entity.Core.Common.CommandTrees.DbFunctionAggregate
<Extension()>
Public Function Aggregate (function As EdmFunction, argument As DbExpression) As DbFunctionAggregate
參數
- function
- EdmFunction
定義聚合運算的函數。
- argument
- DbExpression
應該計算總量函數的論點。
傳回
一個新的函數聚合,並引用給定函數與參數。 函數聚合的 Distinct 性質值為假。
例外狀況
函式或參數為空。
函數不是聚合函數,也不是有多個參數,或參數的結果型別不等於或無法升變。