New to Telerik UI for BlazorStart a free 30-day trial

Represents an aggregate function.

Definition

Namespace:Telerik.DataSource

Assembly:Telerik.DataSource.dll

Syntax:

C#
[JsonConverter(typeof(AggregateFunctionConverter))]
public abstract class AggregateFunction : JsonObject

Inheritance: objectJsonObjectAggregateFunction

Inherited Members JsonObject.ToJson()

Constructors

C#
protected AggregateFunction()

Methods

Creates the aggregate expression that is used for constructing expression tree that will calculate the aggregate result.

C#
public abstract Expression CreateAggregateExpression(Expression enumerableExpression, bool liftMemberAccessToNull)
Parameters:enumerableExpressionExpression

The grouping expression.

liftMemberAccessToNullbool
Returns:

Expression

Generates default name for this function using this type's name.

C#
protected virtual string GenerateFunctionName()
Returns:

string

Function name generated with the following pattern: {GetType().Name}_{GetHashCode()}

Serializes the provided dictionary.

C#
protected override void Serialize(IDictionary<string, object> json)
Parameters:jsonIDictionary<string, object>

Overrides: JsonObject.Serialize(IDictionary<string, object>)

Properties

C#
public abstract string AggregateMethodName { get; }

Gets or sets the informative message to display as an illustration of the aggregate function.

C#
[JsonIgnore]
public string Caption { get; set; }
Property Value:

The caption to display as an illustration of the aggregate function.

Gets or sets the name of the aggregate function, which appears as a property of the group record on which records the function works.

C#
[JsonIgnore]
public virtual string FunctionName { get; set; }
Property Value:

The name of the function as visible from the group record.

The type of the field

C#
[JsonIgnore]
public Type MemberType { get; set; }

Gets or sets a string that is used to format the result value.

C#
[JsonIgnore]
public virtual string ResultFormatString { get; set; }
Property Value:

The format string.

Gets or sets the name of the field, of the item from the set of items, which value is used as the argument of the aggregate function.

C#
public virtual string SourceField { get; set; }
Property Value:

The name of the field to get the argument value from.