Show / Hide Table of Contents

Class EmailItemTableInfo

Table 'email_item': Email data

Inheritance
Object
TableInfo
EmailItemTableInfo
Implements
ICloneable
Inherited Members
TableInfo.ToString()
TableInfo.RegisterFields(FieldInfo[])
TableInfo.FieldInfoFromSoField(SoField)
TableInfo.Clone()
TableInfo.IsSameTable(TableInfo)
TableInfo.FindField(String)
TableInfo.ProtAll
TableInfo.HashCheckFields
TableInfo.TableName
TableInfo.DbName
TableInfo.IsDictionaryTable
TableInfo.All
TableInfo.Item[String]
TableInfo.PrimaryKeyField
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
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
String

Properties

AccountId

Field 'account_id' in table 'email_item': Dictionary type FK, .NET type: 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, .NET type: 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: 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: String

Cc

Declaration
public StringFieldInfo Cc { get; }
Property Value
Type Description
StringFieldInfo

ContactId

Field 'contact_id' in table 'email_item': Dictionary type FK, .NET type: 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
TableInfo.Definition

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
Int32

DocumentId

Field 'document_id' in table 'email_item': Dictionary type FK, .NET type: 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, .NET type: 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: 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: 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: 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: 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: 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: 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: String

Mime text

Declaration
public StringFieldInfo Mime { get; }
Property Value
Type Description
StringFieldInfo

PersonId

Field 'person_id' in table 'email_item': Dictionary type FK, .NET type: 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: 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: 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: 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, .NET type: 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: 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
[Obsolete("Use instance property Definition or static member DictionaryTableNumber", true)]
public static SoTable RuntimeDefinition { get; }
Property Value
Type Description
SoTable

SaleId

Field 'sale_id' in table 'email_item': Dictionary type FK, .NET type: 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: 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: 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: 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: 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: String

To

Declaration
public StringFieldInfo To { get; }
Property Value
Type Description
StringFieldInfo

Updated

Field 'updated' in table 'email_item': 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 'email_item': Dictionary type FK, .NET type: 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: 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:

FieldDescription
AccountIdAccount id
Declaration
public Restriction IdxAccountId(int accountId)
Parameters
Type Name Description
Int32 accountId
Returns
Type Description
Restriction

Implements

System.ICloneable

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top