EdmFunctions.Average(DbExpression) Metoda

Definice

Vytvoří, DbFunctionExpression která vyvolá kanonickou funkci Avg v zadané kolekci. Typ výsledku výrazu je stejný jako typ prvku kolekce.

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

Parametry

collection
DbExpression

Výraz, který určuje kolekci, ze které se má vypočítat průměrná hodnota.

Návraty

Nový DbFunctionExpression, který vytvoří průměrnou hodnotu.

Výjimky

collection je null.

collection je neplatný.

Platí pro