DbFunctionAggregate Class

Definition

Supports standard aggregate functions, such as MIN, MAX, AVG, SUM, and so on. This class cannot be inherited.

public sealed class DbFunctionAggregate : System.Data.Common.CommandTrees.DbAggregate
Inheritance
DbFunctionAggregate

Remarks

This aggregate type corresponds to the invocation of an aggregate function.

Aggregates are pseudo-expressions, and can only appear in the aggregates clause of a GroupBy expression.

Properties

Arguments

Gets the list of expressions that define the arguments to this DbAggregate.

(Inherited from DbAggregate)
Distinct

Gets a value indicating whether this aggregate is a distinct aggregate.

Function

Gets the method metadata that specifies the aggregate function to invoke.

ResultType

Gets the result type of this DbAggregate.

(Inherited from DbAggregate)

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Extension Methods

As(DbAggregate, String)

Returns the specified arguments as a key/value pair object.

Applies to

Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1