Class TicketRelationTableInfo
Table 'ticket_relation': A relation between 2 tickets
Implements
Inherited Members
Namespace: SuperOfficeCRMData
Assembly: SoDataBase.dll
Syntax
[DatabaseTable("ticket_relation")]
public class TicketRelationTableInfo : TableInfo, ICloneable
Remarks
An instance of this class represents one instance of this table in an SQL statement. In most
cases each table appears only once in a SELECT, but in cases where you need to self-join, or
there are multiple occurrences for other reasons (typically additional restrictions in the joins),
then you will need multiple instances.
Instances of this class are created by calling TablesInfo.GetTicketRelationInfo().
Fields
DictionaryTableName
Conceptual name of table TicketRelation in the database dictionary: ticket_relation
Declaration
public const string DictionaryTableName = "ticket_relation"
Field Value
| Type | Description |
|---|---|
| string |
Properties
Comment
Field 'comment' in table 'ticket_relation': Dictionary type String[256], .NET type: string
Comment for relation
Declaration
public StringFieldInfo Comment { get; }
Property Value
| Type | Description |
|---|---|
| StringFieldInfo |
Definition
Definition of the table as described in the deployed runtime dictionary
Declaration
public override SoTable Definition { get; }
Property Value
| Type | Description |
|---|---|
| SoTable |
Overrides
DestinationTicketId
Field 'destination_ticket_id' in table 'ticket_relation': Dictionary type FK, target: Ticket, .NET type: int
Destination ticket in this relation
Declaration
public Int32FieldInfo DestinationTicketId { get; }
Property Value
| Type | Description |
|---|---|
| Int32FieldInfo |
DestinationTicketId_InnerJoin_Ticket
Generated join from the foreign key DestinationTicketId in this table, to its target table TicketTableInfo.
Declaration
public TargetedInnerJoin<TicketTableInfo> DestinationTicketId_InnerJoin_Ticket { get; }
Property Value
| Type | Description |
|---|---|
| TargetedInnerJoinTicketTableInfo |
DictionaryTableNumber
Table number for table TicketRelation in the database dictionary; potentially changes between databases, but always the same over the lifetime of any single database
Declaration
public int DictionaryTableNumber { get; }
Property Value
| Type | Description |
|---|---|
| int |
Registered
Field 'registered' in table 'ticket_relation': Dictionary type UtcDateTime, .NET type: DateTime
Registered when
Declaration
public DateTimeFieldInfo Registered { get; }
Property Value
| Type | Description |
|---|---|
| DateTimeFieldInfo |
RegisteredAssociateId
Field 'registered_associate_id' in table 'ticket_relation': Dictionary type FK, target: Associate, .NET type: int
Registered by whom
Declaration
public Int32FieldInfo RegisteredAssociateId { get; }
Property Value
| Type | Description |
|---|---|
| Int32FieldInfo |
RegisteredAssociateId_InnerJoin_Associate
Generated join from the foreign key RegisteredAssociateId in this table, to its target table AssociateTableInfo.
Declaration
public TargetedInnerJoin<AssociateTableInfo> RegisteredAssociateId_InnerJoin_Associate { get; }
Property Value
| Type | Description |
|---|---|
| TargetedInnerJoinAssociateTableInfo |
RuntimeDefinition
Definition of the table as described in the deployed runtime dictionary
Declaration
[Obsolete("Use instance property Definition or static member DictionaryTableNumber", true)]
public static SoTable RuntimeDefinition { get; }
Property Value
| Type | Description |
|---|---|
| SoTable |
SourceTicketId
Field 'source_ticket_id' in table 'ticket_relation': Dictionary type FK, target: Ticket, .NET type: int
Source ticket in this relation
Declaration
public Int32FieldInfo SourceTicketId { get; }
Property Value
| Type | Description |
|---|---|
| Int32FieldInfo |
SourceTicketId_InnerJoin_Ticket
Generated join from the foreign key SourceTicketId in this table, to its target table TicketTableInfo.
Declaration
public TargetedInnerJoin<TicketTableInfo> SourceTicketId_InnerJoin_Ticket { get; }
Property Value
| Type | Description |
|---|---|
| TargetedInnerJoinTicketTableInfo |
TicketRelationDefId
Field 'ticket_relation_def_id' in table 'ticket_relation': Dictionary type FK, target: TicketRelationDef, .NET type: int
The (optional) relation definition where this relation originated from
Declaration
public Int32FieldInfo TicketRelationDefId { get; }
Property Value
| Type | Description |
|---|---|
| Int32FieldInfo |
TicketRelationDefId_InnerJoin_TicketRelationDef
Generated join from the foreign key TicketRelationDefId in this table, to its target table TicketRelationDefTableInfo.
Declaration
public TargetedInnerJoin<TicketRelationDefTableInfo> TicketRelationDefId_InnerJoin_TicketRelationDef { get; }
Property Value
| Type | Description |
|---|---|
| TargetedInnerJoinTicketRelationDefTableInfo |
TicketRelationId
Field 'ticket_relation_id' in table 'ticket_relation': Dictionary type PK, .NET type: int
Primary key
Declaration
public Int32FieldInfo TicketRelationId { get; }
Property Value
| Type | Description |
|---|---|
| Int32FieldInfo |
Updated
Field 'updated' in table 'ticket_relation': Dictionary type UtcDateTime, .NET type: DateTime
Last updated when
Declaration
public DateTimeFieldInfo Updated { get; }
Property Value
| Type | Description |
|---|---|
| DateTimeFieldInfo |
UpdatedAssociateId
Field 'updated_associate_id' in table 'ticket_relation': Dictionary type FK, target: Associate, .NET type: int
Last updated by whom
Declaration
public Int32FieldInfo UpdatedAssociateId { get; }
Property Value
| Type | Description |
|---|---|
| Int32FieldInfo |
UpdatedAssociateId_InnerJoin_Associate
Generated join from the foreign key UpdatedAssociateId in this table, to its target table AssociateTableInfo.
Declaration
public TargetedInnerJoin<AssociateTableInfo> UpdatedAssociateId_InnerJoin_Associate { get; }
Property Value
| Type | Description |
|---|---|
| TargetedInnerJoinAssociateTableInfo |
UpdatedCount
Field 'updatedCount' in table 'ticket_relation': Dictionary type UShort, .NET type: short
Number of updates made to this record
Declaration
public UInt16FieldInfo UpdatedCount { get; }
Property Value
| Type | Description |
|---|---|
| UInt16FieldInfo |