Class TicketStatusHistoryTableInfo
Table 'ticket_status_history': This table contains the history of a tickets statuses. Each time a ticket changes status a copy of the previous status of the record will be saved
Implements
Inherited Members
Namespace: SuperOffice.CRM.Data
Assembly: SoDataBase.dll
Syntax
[DatabaseTable("ticket_status_history")]
public class TicketStatusHistoryTableInfo : 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
Fields
DictionaryTableName
Conceptual name of table TicketStatusHistory in the database dictionary: ticket_status_history
Declaration
public const string DictionaryTableName = "ticket_status_history"
Field Value
Type | Description |
---|---|
String |
Properties
Definition
Definition of the table as described in the deployed runtime dictionary
Declaration
public override SoTable Definition { get; }
Property Value
Type | Description |
---|---|
SoTable |
Overrides
DictionaryTableNumber
Table number for table TicketStatusHistory 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 |
---|---|
Int32 |
FromDatetime
Field 'from_datetime' in table 'ticket_status_history': Dictionary type DateTime, .NET type: DateTime
Declaration
public DateTimeFieldInfo FromDatetime { get; }
Property Value
Type | Description |
---|---|
DateTimeFieldInfo |
RealTimespan
Field 'real_timespan' in table 'ticket_status_history': Dictionary type Int, .NET type: Int32
The time (seconds) the ticket was in that status. Not calculated based on priority's timeframe.
Declaration
public Int32FieldInfo RealTimespan { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
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 |
TicketId
Field 'ticket_id' in table 'ticket_status_history': Dictionary type FK, .NET type: Int32
Reference to a ticket
Declaration
public Int32FieldInfo TicketId { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
TicketId_InnerJoin_Ticket
Generated join from the foreign key TicketId in this table, to its target table TicketTableInfo.
Declaration
public TargetedInnerJoin<TicketTableInfo> TicketId_InnerJoin_Ticket { get; }
Property Value
Type | Description |
---|---|
TargetedInnerJoin<TicketTableInfo> |
TicketStatus
Field 'ticket_status' in table 'ticket_status_history': Dictionary type FK, .NET type: Int32
User defined ticket status
Declaration
public Int32FieldInfo TicketStatus { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
TicketStatus_InnerJoin_TicketStatus
Generated join from the foreign key TicketStatus in this table, to its target table TicketStatusTableInfo.
Declaration
public TargetedInnerJoin<TicketStatusTableInfo> TicketStatus_InnerJoin_TicketStatus { get; }
Property Value
Type | Description |
---|---|
TargetedInnerJoin<TicketStatusTableInfo> |
TicketStatusHistoryId
Field 'id' in table 'ticket_status_history': Dictionary type PK, .NET type: Int32
The primary key (auto-incremented)
Declaration
public Int32FieldInfo TicketStatusHistoryId { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
Timespan
Field 'timespan' in table 'ticket_status_history': Dictionary type Int, .NET type: Int32
The time (seconds) the ticket was in that status. Calculated based on priority's timeframe.
Declaration
public Int32FieldInfo Timespan { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
ToDatetime
Field 'to_datetime' in table 'ticket_status_history': Dictionary type DateTime, .NET type: DateTime
Declaration
public DateTimeFieldInfo ToDatetime { get; }
Property Value
Type | Description |
---|---|
DateTimeFieldInfo |