Class Concat
Implements
Inherited Members
Namespace: SuperOffice.Data.SQL
Assembly: SoDataBase.dll
Syntax
public class Concat : Argument, ICloneable
Constructors
Concat(params Argument[])
Default constructor that initializes a new instance of the Concat class.
Declaration
public Concat(params Argument[] args)
Parameters
| Type | Name | Description |
|---|---|---|
| Argument[] | args | The objects we are dealing with. Might be FieldInfo or Argument instances. |
Fields
_args
Declaration
protected Argument[] _args
Field Value
| Type | Description |
|---|---|
| Argument[] |
Properties
Arguments
Get the arguments we are dealing with - a field or a value.
Declaration
public Argument[] Arguments { get; }
Property Value
| Type | Description |
|---|---|
| Argument[] |
Methods
Clone()
Creates a copy of the query elements, but shares parameter values with the original, so it is not a complete copy.
Declaration
public override object Clone()
Returns
| Type | Description |
|---|---|
| object | Copy of all the restrictions/joins |
Overrides
Remarks
This method is used by the SentryQueryUpdater to modify a query with sentry extensions without affecting the original query.
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.