Class EjMessageTableInfo
Table 'ej_message': This table contains the messages listed under tickets.
Implements
Inherited Members
Namespace: SuperOffice.CRM.Data
Assembly: SoDataBase.dll
Syntax
[DatabaseTable("ej_message")]
public class EjMessageTableInfo : 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 EjMessage in the database dictionary: ej_message
Declaration
public const string DictionaryTableName = "ej_message"
Field Value
Type | Description |
---|---|
String |
Properties
Author
Field 'author' in table 'ej_message': Dictionary type String[256], .NET type: String
A string representing the author of the message. Could be a user's name, or a persons email address.
Declaration
public StringFieldInfo Author { get; }
Property Value
Type | Description |
---|---|
StringFieldInfo |
Body
Field 'body' in table 'ej_message': Dictionary type Clob, .NET type: String
The textbody for the message.
Declaration
public StringFieldInfo Body { get; }
Property Value
Type | Description |
---|---|
StringFieldInfo |
BodyAttachment
Field 'body_attachment' in table 'ej_message': Dictionary type FK, .NET type: Int32
If the body is too long for the database, it's stored in this attachment instead.
Declaration
public Int32FieldInfo BodyAttachment { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
BodyAttachment_InnerJoin_Attachment
Generated join from the foreign key BodyAttachment in this table, to its target table AttachmentTableInfo.
Declaration
public TargetedInnerJoin<AttachmentTableInfo> BodyAttachment_InnerJoin_Attachment { get; }
Property Value
Type | Description |
---|---|
TargetedInnerJoin<AttachmentTableInfo> |
CreatedAt
Field 'created_at' in table 'ej_message': Dictionary type DateTime, .NET type: DateTime
When the message was posted.
Declaration
public DateTimeFieldInfo CreatedAt { get; }
Property Value
Type | Description |
---|---|
DateTimeFieldInfo |
CreatedBy
Field 'created_by' in table 'ej_message': Dictionary type FK, .NET type: Int32
The id of the user who posted the message. The value 1 (system user) for externally posted messages.
Declaration
public Int32FieldInfo CreatedBy { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
CreatedBy_InnerJoin_Ejuser
Generated join from the foreign key CreatedBy in this table, to its target table EjuserTableInfo.
Declaration
public TargetedInnerJoin<EjuserTableInfo> CreatedBy_InnerJoin_Ejuser { get; }
Property Value
Type | Description |
---|---|
TargetedInnerJoin<EjuserTableInfo> |
CustomerId
Field 'customer_id' in table 'ej_message': Dictionary type FK, .NET type: Int32
If the message was created by email or from the customer center, this field will point to that customer. -1 if the message was created by an user
Declaration
public Int32FieldInfo CustomerId { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
CustomerId_InnerJoin_Person
Generated join from the foreign key CustomerId in this table, to its target table PersonTableInfo.
Declaration
public TargetedInnerJoin<PersonTableInfo> CustomerId_InnerJoin_Person { get; }
Property Value
Type | Description |
---|---|
TargetedInnerJoin<PersonTableInfo> |
DebugInfo
Field 'debug_info' in table 'ej_message': Dictionary type Clob, .NET type: String
The debug info for the message.
Declaration
public StringFieldInfo DebugInfo { 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
DictionaryTableNumber
Table number for table EjMessage 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 |
EjMessageId
Field 'id' in table 'ej_message': Dictionary type PK, .NET type: Int32
The primary key (auto-incremented)
Declaration
public Int32FieldInfo EjMessageId { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
EmailHeader
Field 'email_header' in table 'ej_message': Dictionary type Clob, .NET type: String
The email header is saved in this field as raw text
Declaration
public StringFieldInfo EmailHeader { get; }
Property Value
Type | Description |
---|---|
StringFieldInfo |
HtmlBody
Field 'html_body' in table 'ej_message': Dictionary type Clob, .NET type: String
The html body for the message (if any).
Declaration
public StringFieldInfo HtmlBody { get; }
Property Value
Type | Description |
---|---|
StringFieldInfo |
HtmlBodyAttachment
Field 'html_body_attachment' in table 'ej_message': Dictionary type FK, .NET type: Int32
If the htmlbody is too long for the database, it's stored in this attachment instead.
Declaration
public Int32FieldInfo HtmlBodyAttachment { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
HtmlBodyAttachment_InnerJoin_Attachment
Generated join from the foreign key HtmlBodyAttachment in this table, to its target table AttachmentTableInfo.
Declaration
public TargetedInnerJoin<AttachmentTableInfo> HtmlBodyAttachment_InnerJoin_Attachment { get; }
Property Value
Type | Description |
---|---|
TargetedInnerJoin<AttachmentTableInfo> |
HtmlBodyInlineConverted
Field 'html_body_inline_converted' in table 'ej_message': Dictionary type Bool, .NET type: Int16
True if the html_body has converted inline image links.
Declaration
public UInt16FieldInfo HtmlBodyInlineConverted { get; }
Property Value
Type | Description |
---|---|
UInt16FieldInfo |
Important
Field 'important' in table 'ej_message': Dictionary type Bool, .NET type: Int16
If this message is important or not.
Declaration
public UInt16FieldInfo Important { get; }
Property Value
Type | Description |
---|---|
UInt16FieldInfo |
Inbox
Field 'inbox' in table 'ej_message': Dictionary type FK, .NET type: Int32
The id of the inbox entry which created this message. Note: inbox entries are regularily deleted.
Declaration
public Int32FieldInfo Inbox { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
Inbox_InnerJoin_Inbox
Generated join from the foreign key Inbox in this table, to its target table InboxTableInfo.
Declaration
public TargetedInnerJoin<InboxTableInfo> Inbox_InnerJoin_Inbox { get; }
Property Value
Type | Description |
---|---|
TargetedInnerJoin<InboxTableInfo> |
Language
Field 'language' in table 'ej_message': Dictionary type String[11], .NET type: String
The language this message is in, based on some kind of analysis
Declaration
public StringFieldInfo Language { get; }
Property Value
Type | Description |
---|---|
StringFieldInfo |
LeftOuterJoin_InvoiceEntry_MessageId
Generated left outer join from the primary key EjMessageId on this table, to InvoiceEntry.MessageId.
Declaration
public TargetedLeftOuterJoin<InvoiceEntryTableInfo> LeftOuterJoin_InvoiceEntry_MessageId { get; }
Property Value
Type | Description |
---|---|
TargetedLeftOuterJoin<InvoiceEntryTableInfo> |
LeftOuterJoin_MessageCustomers_MessageId
Generated left outer join from the primary key EjMessageId on this table, to MessageCustomers.MessageId.
Declaration
public TargetedLeftOuterJoin<MessageCustomersTableInfo> LeftOuterJoin_MessageCustomers_MessageId { get; }
Property Value
Type | Description |
---|---|
TargetedLeftOuterJoin<MessageCustomersTableInfo> |
LeftOuterJoin_MessageHeader_MessageId
Generated left outer join from the primary key EjMessageId on this table, to MessageHeader.MessageId.
Declaration
public TargetedLeftOuterJoin<MessageHeaderTableInfo> LeftOuterJoin_MessageHeader_MessageId { get; }
Property Value
Type | Description |
---|---|
TargetedLeftOuterJoin<MessageHeaderTableInfo> |
LeftOuterJoin_Outbox_MessageId
Generated left outer join from the primary key EjMessageId on this table, to Outbox.MessageId.
Declaration
public TargetedLeftOuterJoin<OutboxTableInfo> LeftOuterJoin_Outbox_MessageId { get; }
Property Value
Type | Description |
---|---|
TargetedLeftOuterJoin<OutboxTableInfo> |
LeftOuterJoin_Sms_MessageId
Generated left outer join from the primary key EjMessageId on this table, to Sms.MessageId.
Declaration
public TargetedLeftOuterJoin<SmsTableInfo> LeftOuterJoin_Sms_MessageId { get; }
Property Value
Type | Description |
---|---|
TargetedLeftOuterJoin<SmsTableInfo> |
LeftOuterJoin_TicketAttachment_MessageId
Generated left outer join from the primary key EjMessageId on this table, to TicketAttachment.MessageId.
Declaration
public TargetedLeftOuterJoin<TicketAttachmentTableInfo> LeftOuterJoin_TicketAttachment_MessageId { get; }
Property Value
Type | Description |
---|---|
TargetedLeftOuterJoin<TicketAttachmentTableInfo> |
LeftOuterJoin_TicketLogAction_MessageId
Generated left outer join from the primary key EjMessageId on this table, to TicketLogAction.MessageId.
Declaration
public TargetedLeftOuterJoin<TicketLogActionTableInfo> LeftOuterJoin_TicketLogAction_MessageId { get; }
Property Value
Type | Description |
---|---|
TargetedLeftOuterJoin<TicketLogActionTableInfo> |
LeftOuterJoin_TicketLogChange_MessageId
Generated left outer join from the primary key EjMessageId on this table, to TicketLogChange.MessageId.
Declaration
public TargetedLeftOuterJoin<TicketLogChangeTableInfo> LeftOuterJoin_TicketLogChange_MessageId { get; }
Property Value
Type | Description |
---|---|
TargetedLeftOuterJoin<TicketLogChangeTableInfo> |
MailSorter
Field 'mail_sorter' in table 'ej_message': Dictionary type String[256], .NET type: String
The name of the mail sorter used when the email was imported. Note: We must use name instead of id since the id's change every time one changes the mail sorter. :-0
Declaration
public StringFieldInfo MailSorter { get; }
Property Value
Type | Description |
---|---|
StringFieldInfo |
MessageCategory
Field 'message_category' in table 'ej_message': Dictionary type Enum, .NET type: TicketMessageCategory
Defines what kind of message this is.
Declaration
public TicketMessageCategoryFieldInfo MessageCategory { get; }
Property Value
Type | Description |
---|---|
TicketMessageCategoryFieldInfo |
MessageId
Field 'message_id' in table 'ej_message': Dictionary type String[256], .NET type: String
The X-Message-Id header value from the email. Used for threading, i.e. connecting messages to existing tickets.
Declaration
public StringFieldInfo MessageId { get; }
Property Value
Type | Description |
---|---|
StringFieldInfo |
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 |
SearchTitle
Field 'search_title' in table 'ej_message': Dictionary type String[256], .NET type: String
A copy of the title of the ticket, for search optimisation and simpler reporting.
Declaration
public StringFieldInfo SearchTitle { get; }
Property Value
Type | Description |
---|---|
StringFieldInfo |
Sentiment
Field 'sentiment' in table 'ej_message': Dictionary type Int, .NET type: Int32
Sentiment index, 100 = completely happy; -100 = suicidally unhappy; 0 = no idea
Declaration
public Int32FieldInfo Sentiment { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
SentimentConfidence
Field 'sentimentConfidence' in table 'ej_message': Dictionary type Int, .NET type: Int32
Confidence of sentiment index, 0 = no idea, 100 = completely sure
Declaration
public Int32FieldInfo SentimentConfidence { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
Slevel
Field 'slevel' in table 'ej_message': Dictionary type Enum, .NET type: TicketSecurityLevel
The securitylevel of the message.
Declaration
public TicketSecurityLevelFieldInfo Slevel { get; }
Property Value
Type | Description |
---|---|
TicketSecurityLevelFieldInfo |
TicketId
Field 'ticket_id' in table 'ej_message': Dictionary type FK, .NET type: Int32
The ticket this message is a child of.
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> |
TimeCharge
Field 'time_charge' in table 'ej_message': Dictionary type Int, .NET type: Int32
The amount of time (minutes) which should be invoiced for this message.
Declaration
public Int32FieldInfo TimeCharge { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
TimeSpent
Field 'time_spent' in table 'ej_message': Dictionary type Int, .NET type: Int32
The time spent (minutes) for this message.
Declaration
public Int32FieldInfo TimeSpent { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
Type
Field 'type' in table 'ej_message': Dictionary type Enum, .NET type: TicketMessageType
The type of the message (plaintext/html).
Declaration
public TicketMessageTypeFieldInfo Type { get; }
Property Value
Type | Description |
---|---|
TicketMessageTypeFieldInfo |
Methods
IdxSearchTitle(String)
Shortcut method for looking up using the database index SearchTitle, which spans the following fields:
Field | Description |
---|---|
SearchTitle | A copy of the title of the ticket, for search optimisation and simpler reporting. |
Declaration
public Restriction IdxSearchTitle(string searchTitle)
Parameters
Type | Name | Description |
---|---|---|
String | searchTitle |
Returns
Type | Description |
---|---|
Restriction |
IdxSearchTitleBody(String, String)
Shortcut method for looking up using the database index SearchTitleBody, which spans the following fields:
Field | Description |
---|---|
SearchTitle | A copy of the title of the ticket, for search optimisation and simpler reporting. |
Body | The textbody for the message. |
Declaration
public Restriction IdxSearchTitleBody(string searchTitle, string body)
Parameters
Type | Name | Description |
---|---|---|
String | searchTitle | |
String | body |
Returns
Type | Description |
---|---|
Restriction |