Class Aggregation
The Aggregation class
Inheritance
Aggregation
Implements
Inherited Members
Namespace: SuperOffice.Data.SQL
Assembly: SoDataBase.dll
Syntax
public abstract class Aggregation : Argument, ICloneable
Constructors
Aggregation(Argument)
Default constructor that initializes a new instance of the Aggregation class.
Declaration
public Aggregation(Argument arg)
Parameters
| Type | Name | Description |
|---|---|---|
| Argument | arg | The object we are dealing with. Might be a FieldInfo or an Argument. |
Fields
_arg
The object we are dealing with.
Declaration
protected Argument _arg
Field Value
| Type | Description |
|---|---|
| Argument |
Properties
ArgumentObject
Get the argument we are dealing with - a field or a value.
Declaration
public Argument ArgumentObject { get; }
Property Value
| Type | Description |
|---|---|
| Argument |
Methods
GetMainField()
Returns information about a database field.
Declaration
public override FieldInfo GetMainField()
Returns
| Type | Description |
|---|---|
| FieldInfo |
Overrides
GetReferencedFields()
Enumerate every FieldInfo referenced inside this argument, recursively.
Declaration
public override IEnumerable<FieldInfo> GetReferencedFields()
Returns
| Type | Description |
|---|---|
| IEnumerable<FieldInfo> |
Overrides
Remarks
Used by Select.GetTableInfos to anchor joins for compound arguments (CASE, CONCAT, math, aggregations, function calls) that wrap fields from multiple tables. Unlike GetMainField(), which returns at most one representative field, this enumerates them all so every referenced table is discovered.