EdmFunctions.Average(DbExpression) Yöntem

Tanım

Belirtilen koleksiyon üzerinde kurallı 'Avg' işlevini çağıran bir DbFunctionExpression oluşturur. İfadenin sonuç türü, koleksiyonun öğe türüyle aynıdır.

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

Parametreler

collection
DbExpression

Ortalama değerin hesaplanması gereken koleksiyonu belirten bir ifade.

Döndürülenler

Ortalama değeri üreten yeni bir DbFunctionExpression.

Özel durumlar

collection, null değeridir.

collection geçersizdir.

Şunlara uygulanır