Show / Hide Table of Contents

Class AggregationQueryFunction

The aggregate function of the expression.

Inheritance
System.Object
QueryFunction
AggregationQueryFunction
Implements
IQueryColumnExpressionConvertible
IQueryColumnExpressionsCollector
System.ICloneable
Inherited Members
QueryFunction.Negate(QueryFunction)
QueryFunction.Add(QueryFunction, QueryFunction)
QueryFunction.Subtract(QueryFunction, QueryFunction)
QueryFunction.Multiply(QueryFunction, QueryFunction)
QueryFunction.Divide(QueryFunction, QueryFunction)
QueryFunction.GetQueryColumnExpressions()
QueryFunction.GetQueryColumnExpression()
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Terrasoft.Core.DB
Assembly: Terrasoft.Core.dll
Syntax
public class AggregationQueryFunction : QueryFunction, IQueryColumnExpressionConvertible, IQueryColumnExpressionsCollector, ICloneable

Constructors

AggregationQueryFunction()

Initializes a new AggregationQueryFunction instance.

Declaration
public AggregationQueryFunction()

AggregationQueryFunction(AggregationTypeStrict, IQueryColumnExpressionConvertible)

Initializes a new AggregationQueryFunction instance with the specified type of the aggregate function for the specified expression.

Declaration
public AggregationQueryFunction(AggregationTypeStrict aggregationType, IQueryColumnExpressionConvertible expression)
Parameters
Type Name Description
AggregationTypeStrict aggregationType

Type of aggregating function.

IQueryColumnExpressionConvertible expression

The expression to which the aggregate function is applied.

Exceptions
Type Condition
System.ArgumentNullException

If null is passed as the expression parameter.

AggregationQueryFunction(AggregationTypeStrict, QueryColumnExpression)

Initializes a new AggregationQueryFunction instance with the specified type of the aggregate function for the specified column expression.

Declaration
public AggregationQueryFunction(AggregationTypeStrict aggregationType, QueryColumnExpression expression)
Parameters
Type Name Description
AggregationTypeStrict aggregationType

Type of aggregating function.

QueryColumnExpression expression

The column expression to which the aggregate function is applied.

AggregationQueryFunction(AggregationQueryFunction)

Initializes a new AggregationQueryFunction instance that is a clone of the passed-in aggregate function of the expression.

Declaration
public AggregationQueryFunction(AggregationQueryFunction source)
Parameters
Type Name Description
AggregationQueryFunction source

The AggregationQueryFunction aggregate function of the expression whose clone is being created.

Properties

AggregationEvalType

The scope of the aggregate function.

Declaration
public AggregationEvalType AggregationEvalType { get; set; }
Property Value
Type Description
AggregationEvalType

AggregationType

Type of aggregating function.

Declaration
public AggregationTypeStrict AggregationType { get; set; }
Property Value
Type Description
AggregationTypeStrict

Expression

The expression of the function argument.

Declaration
public QueryColumnExpression Expression { get; set; }
Property Value
Type Description
QueryColumnExpression

Methods

AddQueryColumnExpressions(QueryColumnExpressionCollection)

Declaration
protected override void AddQueryColumnExpressions(QueryColumnExpressionCollection collection)
Parameters
Type Name Description
QueryColumnExpressionCollection collection
Overrides
QueryFunction.AddQueryColumnExpressions(QueryColumnExpressionCollection)

AddUsingParameters(QueryParameterCollection)

Adds the passed-in collection of parameters in the function arguments.

Declaration
public override void AddUsingParameters(QueryParameterCollection resultParameters)
Parameters
Type Name Description
QueryParameterCollection resultParameters

Collection of query parameters that are added in the function arguments.

Overrides
QueryFunction.AddUsingParameters(QueryParameterCollection)

All()

Sets the [To All Values] scope for the current aggregate function.

Declaration
public AggregationQueryFunction All()
Returns
Type Description
AggregationQueryFunction

The current AggregationQueryFunction instance.

BuildSqlText(StringBuilder, DBEngine)

Generates the query text, using the specified System.Text.StringBuilder instance and the DBEngine query builder.

Declaration
public override void BuildSqlText(StringBuilder sb, DBEngine dbEngine)
Parameters
Type Name Description
System.Text.StringBuilder sb

The System.Text.StringBuilder instance used to create query text.

DBEngine dbEngine

The instance of the builder of the database queries.

Overrides
QueryFunction.BuildSqlText(StringBuilder, DBEngine)

Clone()

Creates the clone of the current AggregationQueryFunction instance.

Declaration
public override object Clone()
Returns
Type Description
System.Object

A new AggregationQueryFunction instance that is a clone of the current instance.

Overrides
QueryFunction.Clone()

Distinct()

Sets the [To Unique Values] scope for the current aggregate function.

Declaration
public AggregationQueryFunction Distinct()
Returns
Type Description
AggregationQueryFunction

The current AggregationQueryFunction instance.

Implements

IQueryColumnExpressionConvertible
IQueryColumnExpressionsCollector
System.ICloneable

Extension Methods

ReflectionUtilities.GetPropertyValue(Object, String)
ReflectionUtilities.GetPropertyDefValue(Object, String, Object)
ReflectionUtilities.TryGetPropertyValue(Object, String, out Object)
ReflectionUtilities.HasProperty(Object, String)
ReflectionUtilities.GetPropertyValue(Object, String, BindingFlags)
ReflectionUtilities.GetPropertyValueByPath(Object, String)
ReflectionUtilities.SetPropertyValue(Object, String, Object)
ReflectionUtilities.TrySetPropertyValue(Object, String, Object)
ValidateUtilities.CheckArgumentNull(Object, String)
ValidateUtilities.CheckDependencyNull(Object, String)
ValidateUtilities.EnsureDependencyNotNull<T>(T, String)
MetaDataTestUtils.MetaPropertiesShouldNotHaveDefValue<TInstance>(TInstance)
MetaDataTestUtils.MetaPropertiesShouldNotHaveDefValue<TInstance>(TInstance, Boolean)
NSubstituteExtension.Protected(Object, String, Object[])
NSubstituteExtension.Protected(Object, String, Boolean, Object[])
NSubstituteExtension.ProtectedGeneric<T>(Object, String, Object[])
NSubstituteExtension.ProtectedGeneric<T>(Object, String, Boolean, Object[])
NSubstituteExtension.ProtectedProperty(Object, String)
NSubstituteExtension.MatchInstance<T>(T)
SubstituteUtilities.GetIsSubstituteObject(Object)
SubstituteUtilities.Instead<TInstance, TValue>(TInstance, Func<TInstance, TValue>)
Back to top Generated by DocFX