EdmFunctions.Sum(DbExpression) Yöntem

Tanım

Belirtilen koleksiyon üzerinde kurallı 'Sum' 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 ^ Sum(System::Data::Common::CommandTrees::DbExpression ^ collection);
public static System.Data.Common.CommandTrees.DbFunctionExpression Sum (this System.Data.Common.CommandTrees.DbExpression collection);
static member Sum : System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function Sum (collection As DbExpression) As DbFunctionExpression

Parametreler

collection
DbExpression

Toplamın hesaplanması gereken koleksiyonu belirten ifade.

Döndürülenler

Toplamı üreten yeni bir DbFunctionExpression.

Özel durumlar

collection, null değeridir.

collection geçersizdir.

Şunlara uygulanır