Show / Hide Table of Contents

Class ChatMessageTableInfo

Table 'chat_message': This table contains messages in a chat session.

Inheritance
Object
TableInfo
ChatMessageTableInfo
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("chat_message")]
public class ChatMessageTableInfo : 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 ChatMessage in the database dictionary: chat_message

Declaration
public const string DictionaryTableName = "chat_message"
Field Value
Type Description
String

Properties

Author

Field 'author' in table 'chat_message': Dictionary type String[256], .NET type: String

The author of the message.

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

ChatMessageId

Field 'id' in table 'chat_message': Dictionary type PK, .NET type: Int32

The primary key (auto-incremented)

Declaration
public Int32FieldInfo ChatMessageId { get; }
Property Value
Type Description
Int32FieldInfo

CreatedBy

Field 'created_by' in table 'chat_message': Dictionary type FK, .NET type: Int32

The user agent who wrote the message. -1 if customer

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>

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 ChatMessage 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

Message

Field 'message' in table 'chat_message': Dictionary type Clob, .NET type: String

The message.

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

ReadByCustomer

Field 'read_by_customer' in table 'chat_message': Dictionary type Bool, .NET type: Int16

Whether the message has been read by the customer or not.

Declaration
public UInt16FieldInfo ReadByCustomer { get; }
Property Value
Type Description
UInt16FieldInfo

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

SessionId

Field 'session_id' in table 'chat_message': Dictionary type FK, .NET type: Int32

The reference to the associated chat session.

Declaration
public Int32FieldInfo SessionId { get; }
Property Value
Type Description
Int32FieldInfo

SessionId_InnerJoin_ChatSession

Generated join from the foreign key SessionId in this table, to its target table ChatSessionTableInfo.

Declaration
public TargetedInnerJoin<ChatSessionTableInfo> SessionId_InnerJoin_ChatSession { get; }
Property Value
Type Description
TargetedInnerJoin<ChatSessionTableInfo>

SpecialParam

Field 'special_param' in table 'chat_message': Dictionary type String[256], .NET type: String

Special parameter for the special_type.

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

SpecialType

Field 'special_type' in table 'chat_message': Dictionary type Enum, .NET type: ChatMessageSpecialType

Enum indicating if it is a special message, such as an URL redirection, etc.

Declaration
public ChatMessageSpecialTypeFieldInfo SpecialType { get; }
Property Value
Type Description
ChatMessageSpecialTypeFieldInfo

Type

Field 'type' in table 'chat_message': Dictionary type Enum, .NET type: ChatMessageType

The type of the message.

Declaration
public ChatMessageTypeFieldInfo Type { get; }
Property Value
Type Description
ChatMessageTypeFieldInfo

WhenPosted

Field 'when_posted' in table 'chat_message': Dictionary type DateTime, .NET type: DateTime

When the message was posted (UTC timestamp).

Declaration
public DateTimeFieldInfo WhenPosted { get; }
Property Value
Type Description
DateTimeFieldInfo

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