Class QueryAggregate
- Namespace
- Dynamicweb.Tracking.Reporting
- Assembly
- Dynamicweb.Core.dll
Represents a query aggregate.
public class QueryAggregate
- Inheritance
-
QueryAggregate
- Inherited Members
Constructors
QueryAggregate(AggregateType, string, Type)
Initializes a new instance of the QueryAggregate class.
public QueryAggregate(AggregateType aggregateType, string columnName, Type type)
Parameters
aggregateTypeAggregateTypeType of the aggregate.
columnNamestringName of the column.
typeTypeThe type.
QueryAggregate(AggregateType, string, Type, string)
Initializes a new instance of the QueryAggregate class.
public QueryAggregate(AggregateType aggregateType, string columnName, Type type, string alias)
Parameters
aggregateTypeAggregateTypeType of the aggregate.
columnNamestringName of the column.
typeTypeThe type.
aliasstringThe alias for the aggregate allowing for this aggregate to be referenced by the query.
Properties
Aggregate
Gets or sets the aggregate.
public AggregateType Aggregate { get; set; }
Property Value
- AggregateType
The aggregate.
Alias
Gets or sets the alias of the aggregate. The alias can be used when building queries.
public string? Alias { get; set; }
Property Value
AllowUnsafeColumnNames
Gets or sets a value indicating whether unsafe column names are allowed.
public bool AllowUnsafeColumnNames { get; set; }
Property Value
- bool
trueif unsafe column names are allowed; otherwise,false.
ColumnName
Gets or sets the name of the column.
public string ColumnName { get; set; }
Property Value
- string
The name of the column.
Label
Gets or sets the label.
public string Label { get; set; }
Property Value
- string
The label.
ValueType
Gets or sets the type of the value.
public Type ValueType { get; set; }
Property Value
- Type
The type of the value.
Methods
GetParameter()
Gets the parameter.
public string GetParameter()