Class OutboxTableInfo
Table 'outbox': Outgoing emails with sending status and other info
Implements
Inherited Members
Namespace: SuperOffice.CRM.Data
Assembly: SoDataBase.dll
Syntax
[DatabaseTable("outbox")]
public class OutboxTableInfo : 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 Outbox in the database dictionary: outbox
Declaration
public const string DictionaryTableName = "outbox"
Field Value
Type | Description |
---|---|
System.String |
Properties
Created
Field 'created' in table 'outbox': Dictionary type DateTime, .NET type: System.DateTime
When the mail was created
Declaration
public DateTimeFieldInfo Created { get; }
Property Value
Type | Description |
---|---|
DateTimeFieldInfo |
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 Outbox 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 |
FromEmail
Field 'from_email' in table 'outbox': Dictionary type String[256], .NET type: System.String
Mail address of the sender
Declaration
public StringFieldInfo FromEmail { get; }
Property Value
Type | Description |
---|---|
StringFieldInfo |
FromEnvelope
Field 'from_envelope' in table 'outbox': Dictionary type String[256], .NET type: System.String
Envelope (smtp) Mail address of the sender
Declaration
public StringFieldInfo FromEnvelope { get; }
Property Value
Type | Description |
---|---|
StringFieldInfo |
LastError
Field 'last_error' in table 'outbox': Dictionary type String[256], .NET type: System.String
The last error reported when sending this message
Declaration
public StringFieldInfo LastError { get; }
Property Value
Type | Description |
---|---|
StringFieldInfo |
LeftOuterJoin_Sms_OutboxId
Generated left outer join from the primary key OutboxId on this table, to Sms.OutboxId.
Declaration
public TargetedLeftOuterJoin<SmsTableInfo> LeftOuterJoin_Sms_OutboxId { get; }
Property Value
Type | Description |
---|---|
TargetedLeftOuterJoin<SmsTableInfo> |
MailSize
Field 'mail_size' in table 'outbox': Dictionary type Int, .NET type: System.Int32
The size of the mail in bytes
Declaration
public Int32FieldInfo MailSize { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
MessageId
Field 'message_id' in table 'outbox': Dictionary type FK, .NET type: System.Int32
The message.id this reference is connected to.
Declaration
public Int32FieldInfo MessageId { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
MessageId_InnerJoin_EjMessage
Generated join from the foreign key MessageId in this table, to its target table EjMessageTableInfo.
Declaration
public TargetedInnerJoin<EjMessageTableInfo> MessageId_InnerJoin_EjMessage { get; }
Property Value
Type | Description |
---|---|
TargetedInnerJoin<EjMessageTableInfo> |
NextRetry
Field 'next_retry' in table 'outbox': Dictionary type DateTime, .NET type: System.DateTime
When is the next time we should try again?
Declaration
public DateTimeFieldInfo NextRetry { get; }
Property Value
Type | Description |
---|---|
DateTimeFieldInfo |
OutboxId
Field 'id' in table 'outbox': Dictionary type PK, .NET type: System.Int32
Primary key
Declaration
public Int32FieldInfo OutboxId { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
Pid
Field 'pid' in table 'outbox': Dictionary type Int, .NET type: System.Int32
The process id owning this message
Declaration
public Int32FieldInfo Pid { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
Rcpt
Field 'rcpt' in table 'outbox': Dictionary type Clob, .NET type: System.String
A list of recipience
Declaration
public StringFieldInfo Rcpt { get; }
Property Value
Type | Description |
---|---|
StringFieldInfo |
Retries
Field 'retries' in table 'outbox': Dictionary type Int, .NET type: System.Int32
The number of times we have tried to send this mail
Declaration
public Int32FieldInfo Retries { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
Rfc822Content
Field 'rfc822_content' in table 'outbox': Dictionary type Clob, .NET type: System.String
The content of the outgoing email as a string. Alternative to using outbox file
Declaration
public StringFieldInfo Rfc822Content { 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 |
Status
Field 'status' in table 'outbox': Dictionary type Int, .NET type: System.Int32
Status enum
Declaration
public Int32FieldInfo Status { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
Subject
Field 'subject' in table 'outbox': Dictionary type String[256], .NET type: System.String
Subject of the mail
Declaration
public StringFieldInfo Subject { get; }
Property Value
Type | Description |
---|---|
StringFieldInfo |
TicketId
Field 'ticket_id' in table 'outbox': Dictionary type FK, .NET type: System.Int32
The ticket.id this reference is connected to.
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> |
Type
Field 'type' in table 'outbox': Dictionary type Enum, .NET type: System.Int16
Indicates if this is a SMS to be sent via WebServices or a normal email. 0 = email, 1 = sms
Declaration
public UInt16FieldInfo Type { get; }
Property Value
Type | Description |
---|---|
UInt16FieldInfo |