Language

EdmFunctions.Average(DbExpression) メソッド

定義

指定したコレクションに対して正規の "Avg" 関数を呼び出す DbFunctionExpression を作成します。 式の結果の型は、コレクションの要素型と同じです。

public static System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression Average(this System.Data.Entity.Core.Common.CommandTrees.DbExpression collection);
static member Average : System.Data.Entity.Core.Common.CommandTrees.DbExpression -> System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function Average (collection As DbExpression) As DbFunctionExpression

パラメーター

collection
DbExpression

平均値の計算元となるコレクションを指定する式。

戻り値

平均値を生成する新しい DbFunctionExpression。

適用対象