EdmFunctions.Average(DbExpression) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
指定したコレクションに対して正規の "Avg" 関数を呼び出す DbFunctionExpression を作成します。 式の結果の型は、コレクションの要素型と同じです。
public:
[System::Runtime::CompilerServices::Extension]
static System::Data::Common::CommandTrees::DbFunctionExpression ^ Average(System::Data::Common::CommandTrees::DbExpression ^ collection);
public static System.Data.Common.CommandTrees.DbFunctionExpression Average(this System.Data.Common.CommandTrees.DbExpression collection);
static member Average : System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function Average (collection As DbExpression) As DbFunctionExpression
パラメーター
- collection
- DbExpression
平均値の計算元となるコレクションを指定する式。
返品
平均値を生成する新しい DbFunctionExpression。
例外
collection は nullです。
collection が無効です。