Class EmailItemTableInfo
Table 'email_item': Email data
Implements
Inherited Members
Namespace: SuperOffice.CRM.Data
Assembly: SoDataBase.dll
Syntax
[DatabaseTable("email_item")]
public class EmailItemTableInfo : 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 EmailItem in the database dictionary: email_item
Declaration
public const string DictionaryTableName = "email_item"
Field Value
Type | Description |
---|---|
System.String |
Properties
AccountId
Field 'account_id' in table 'email_item': Dictionary type FK, target: EmailAccount, .NET type: System.Int32
Account id
Declaration
public Int32FieldInfo AccountId { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
AccountId_InnerJoin_EmailAccount
Generated join from the foreign key AccountId in this table, to its target table EmailAccountTableInfo.
Declaration
public TargetedInnerJoin<EmailAccountTableInfo> AccountId_InnerJoin_EmailAccount { get; }
Property Value
Type | Description |
---|---|
TargetedInnerJoin<EmailAccountTableInfo> |
AppointmentId
Field 'appointment_id' in table 'email_item': Dictionary type FK, target: Appointment, .NET type: System.Int32
Archived on appointment
Declaration
public Int32FieldInfo AppointmentId { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
AppointmentId_InnerJoin_Appointment
Generated join from the foreign key AppointmentId in this table, to its target table AppointmentTableInfo.
Declaration
public TargetedInnerJoin<AppointmentTableInfo> AppointmentId_InnerJoin_Appointment { get; }
Property Value
Type | Description |
---|---|
TargetedInnerJoin<AppointmentTableInfo> |
CalData
Field 'cal_data' in table 'email_item': Dictionary type Clob, .NET type: System.String
Calendar data
Declaration
public StringFieldInfo CalData { get; }
Property Value
Type | Description |
---|---|
StringFieldInfo |
Cc
Field 'cc' in table 'email_item': Dictionary type String[4001], .NET type: System.String
Cc
Declaration
public StringFieldInfo Cc { get; }
Property Value
Type | Description |
---|---|
StringFieldInfo |
ContactId
Field 'contact_id' in table 'email_item': Dictionary type FK, target: Contact, .NET type: System.Int32
From company
Declaration
public Int32FieldInfo ContactId { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
ContactId_InnerJoin_Contact
Generated join from the foreign key ContactId in this table, to its target table ContactTableInfo.
Declaration
public TargetedInnerJoin<ContactTableInfo> ContactId_InnerJoin_Contact { get; }
Property Value
Type | Description |
---|---|
TargetedInnerJoin<ContactTableInfo> |
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 EmailItem 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 |
---|---|
System.Int32 |
DocumentId
Field 'document_id' in table 'email_item': Dictionary type FK, target: Document, .NET type: System.Int32
Archived document
Declaration
public Int32FieldInfo DocumentId { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
DocumentId_InnerJoin_Document
Generated join from the foreign key DocumentId in this table, to its target table DocumentTableInfo.
Declaration
public TargetedInnerJoin<DocumentTableInfo> DocumentId_InnerJoin_Document { get; }
Property Value
Type | Description |
---|---|
TargetedInnerJoin<DocumentTableInfo> |
EmailFolderId
Field 'email_folder_id' in table 'email_item': Dictionary type FK, target: EmailFolder, .NET type: System.Int32
Folder this email is in on the imap server
Declaration
public Int32FieldInfo EmailFolderId { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
EmailFolderId_InnerJoin_EmailFolder
Generated join from the foreign key EmailFolderId in this table, to its target table EmailFolderTableInfo.
Declaration
public TargetedInnerJoin<EmailFolderTableInfo> EmailFolderId_InnerJoin_EmailFolder { get; }
Property Value
Type | Description |
---|---|
TargetedInnerJoin<EmailFolderTableInfo> |
EmailItemId
Field 'email_item_id' in table 'email_item': Dictionary type PK, .NET type: System.Int32
Primary key
Declaration
public Int32FieldInfo EmailItemId { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
Flags
Field 'flags' in table 'email_item': Dictionary type Enum, .NET type: EMailFlags
Email flags - answered, deleted, seen, flagged, draft, recent...
Declaration
public EMailFlagsFieldInfo Flags { get; }
Property Value
Type | Description |
---|---|
EMailFlagsFieldInfo |
From
Field 'from' in table 'email_item': Dictionary type String[4001], .NET type: System.String
From address
Declaration
public StringFieldInfo From { get; }
Property Value
Type | Description |
---|---|
StringFieldInfo |
HasAttachment
Field 'has_attachment' in table 'email_item': Dictionary type Bool, .NET type: System.Int16
Has attachment(s)
Declaration
public UInt16FieldInfo HasAttachment { get; }
Property Value
Type | Description |
---|---|
UInt16FieldInfo |
HtmlBody
Field 'html_body' in table 'email_item': Dictionary type Clob, .NET type: System.String
Html body text
Declaration
public StringFieldInfo HtmlBody { get; }
Property Value
Type | Description |
---|---|
StringFieldInfo |
InReplyTo
Field 'in_reply_to' in table 'email_item': Dictionary type String[513], .NET type: System.String
In reply to, a message-id, used for threading
Declaration
public StringFieldInfo InReplyTo { get; }
Property Value
Type | Description |
---|---|
StringFieldInfo |
LeftOuterJoin_EmailAttachment_EmailItemId
Generated left outer join from the primary key EmailItemId on this table, to EmailAttachment.EmailItemId.
Declaration
public TargetedLeftOuterJoin<EmailAttachmentTableInfo> LeftOuterJoin_EmailAttachment_EmailItemId { get; }
Property Value
Type | Description |
---|---|
TargetedLeftOuterJoin<EmailAttachmentTableInfo> |
MessageId
Field 'messageId' in table 'email_item': Dictionary type String[513], .NET type: System.String
Email MessageId
Declaration
public StringFieldInfo MessageId { get; }
Property Value
Type | Description |
---|---|
StringFieldInfo |
Mime
Field 'mime' in table 'email_item': Dictionary type Clob, .NET type: System.String
Mime text
Declaration
public StringFieldInfo Mime { get; }
Property Value
Type | Description |
---|---|
StringFieldInfo |
PersonId
Field 'person_id' in table 'email_item': Dictionary type FK, target: Person, .NET type: System.Int32
From person
Declaration
public Int32FieldInfo PersonId { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
PersonId_InnerJoin_Person
Generated join from the foreign key PersonId in this table, to its target table PersonTableInfo.
Declaration
public TargetedInnerJoin<PersonTableInfo> PersonId_InnerJoin_Person { get; }
Property Value
Type | Description |
---|---|
TargetedInnerJoin<PersonTableInfo> |
PlainBody
Field 'plain_body' in table 'email_item': Dictionary type Clob, .NET type: System.String
Plain body text
Declaration
public StringFieldInfo PlainBody { get; }
Property Value
Type | Description |
---|---|
StringFieldInfo |
Priority
Field 'priority' in table 'email_item': Dictionary type Enum, .NET type: EMailPriority
Email priority
Declaration
public EMailPriorityFieldInfo Priority { get; }
Property Value
Type | Description |
---|---|
EMailPriorityFieldInfo |
ReceivedAt
Field 'received_at' in table 'email_item': Dictionary type DateTime, .NET type: System.DateTime
Received by email server
Declaration
public DateTimeFieldInfo ReceivedAt { get; }
Property Value
Type | Description |
---|---|
DateTimeFieldInfo |
Registered
Field 'registered' in table 'email_item': Dictionary type UtcDateTime, .NET type: System.DateTime
Registered when
Declaration
public DateTimeFieldInfo Registered { get; }
Property Value
Type | Description |
---|---|
DateTimeFieldInfo |
RegisteredAssociateId
Field 'registered_associate_id' in table 'email_item': Dictionary type FK, target: Associate, .NET type: System.Int32
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 |
---|---|
TargetedInnerJoin<AssociateTableInfo> |
RepliedAt
Field 'replied_at' in table 'email_item': Dictionary type DateTime, .NET type: System.DateTime
When this email was replied to
Declaration
public DateTimeFieldInfo RepliedAt { get; }
Property Value
Type | Description |
---|---|
DateTimeFieldInfo |
RuntimeDefinition
Definition of the table as described in the deployed runtime dictionary
Declaration
public static SoTable RuntimeDefinition { get; }
Property Value
Type | Description |
---|---|
SoTable |
SaleId
Field 'sale_id' in table 'email_item': Dictionary type FK, target: Sale, .NET type: System.Int32
Archived on sale
Declaration
public Int32FieldInfo SaleId { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
SaleId_InnerJoin_Sale
Generated join from the foreign key SaleId in this table, to its target table SaleTableInfo.
Declaration
public TargetedInnerJoin<SaleTableInfo> SaleId_InnerJoin_Sale { get; }
Property Value
Type | Description |
---|---|
TargetedInnerJoin<SaleTableInfo> |
SentAt
Field 'sent_at' in table 'email_item': Dictionary type DateTime, .NET type: System.DateTime
Sent datetime from mime
Declaration
public DateTimeFieldInfo SentAt { get; }
Property Value
Type | Description |
---|---|
DateTimeFieldInfo |
ServerId
Field 'server_id' in table 'email_item': Dictionary type Int, .NET type: System.Int32
Email server id of this email item
Declaration
public Int32FieldInfo ServerId { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
Size
Field 'size' in table 'email_item': Dictionary type Int, .NET type: System.Int32
The size of the email
Declaration
public Int32FieldInfo Size { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
Subject
Field 'subject' in table 'email_item': Dictionary type String[256], .NET type: System.String
Email subject
Declaration
public StringFieldInfo Subject { get; }
Property Value
Type | Description |
---|---|
StringFieldInfo |
To
Field 'to' in table 'email_item': Dictionary type String[4001], .NET type: System.String
To
Declaration
public StringFieldInfo To { get; }
Property Value
Type | Description |
---|---|
StringFieldInfo |
Updated
Field 'updated' in table 'email_item': Dictionary type UtcDateTime, .NET type: System.DateTime
Last updated when
Declaration
public DateTimeFieldInfo Updated { get; }
Property Value
Type | Description |
---|---|
DateTimeFieldInfo |
UpdatedAssociateId
Field 'updated_associate_id' in table 'email_item': Dictionary type FK, target: Associate, .NET type: System.Int32
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 |
---|---|
TargetedInnerJoin<AssociateTableInfo> |
UpdatedCount
Field 'updatedCount' in table 'email_item': Dictionary type UShort, .NET type: System.Int16
Number of updates made to this record
Declaration
public UInt16FieldInfo UpdatedCount { get; }
Property Value
Type | Description |
---|---|
UInt16FieldInfo |
Methods
IdxAccountId(Int32)
Shortcut method for looking up using the database index AccountId, which spans the following fields:
Field | Description |
---|---|
AccountId | Account id |
Declaration
public Restriction IdxAccountId(int accountId)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | accountId |
Returns
Type | Description |
---|---|
Restriction |