Class ErpExternalKeyTableInfo
Table 'ErpExternalKey': The external (ERP-facing) key related to a synchronized record / connection
Implements
Inherited Members
Namespace: SuperOffice.CRM.Data
Assembly: SoDataBase.dll
Syntax
[DatabaseTable("ErpExternalKey")]
public class ErpExternalKeyTableInfo : 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 TablesInfo.GetErpExternalKeyInfo().
Fields
DictionaryTableName
Conceptual name of table ErpExternalKey in the database dictionary: ErpExternalKey
Declaration
public const string DictionaryTableName = "ErpExternalKey"
Field Value
Type | Description |
---|---|
string |
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 TablesInfo.GetErpExternalKeyInfo().
Properties
ActorType
Field 'ActorType' in table 'ErpExternalKey': Dictionary type Enum, .NET type: ErpActorType
The actor type within the ERP system of this synchronized recordDeclaration
public ErpActorTypeFieldInfo ActorType { get; }
Property Value
Type | Description |
---|---|
ErpActorTypeFieldInfo |
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 TablesInfo.GetErpExternalKeyInfo().
Definition
Definition of the table as described in the deployed runtime dictionary
Declaration
public override SoTable Definition { get; }
Property Value
Type | Description |
---|---|
SoTable |
Overrides
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 TablesInfo.GetErpExternalKeyInfo().
DictionaryTableNumber
Table number for table ErpExternalKey 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 |
---|---|
int |
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 TablesInfo.GetErpExternalKeyInfo().
ErpConnectionId
Field 'ErpConnectionId' in table 'ErpExternalKey': Dictionary type FK, target: ErpConnection, .NET type: int
Link to the Erp connection the key relates toDeclaration
public Int32FieldInfo ErpConnectionId { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
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 TablesInfo.GetErpExternalKeyInfo().
ErpConnectionId_InnerJoin_ErpConnection
Generated join from the foreign key ErpConnectionId in this table, to its target table ErpConnectionTableInfo.
Declaration
public TargetedInnerJoin<ErpConnectionTableInfo> ErpConnectionId_InnerJoin_ErpConnection { get; }
Property Value
Type | Description |
---|---|
TargetedInnerJoin<ErpConnectionTableInfo> |
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 TablesInfo.GetErpExternalKeyInfo().
ErpExternalKeyId
Field 'erpexternalkey_id' in table 'ErpExternalKey': Dictionary type PK, .NET type: int
Primary keyDeclaration
public Int32FieldInfo ErpExternalKeyId { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
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 TablesInfo.GetErpExternalKeyInfo().
ErpInternalKeyId
Field 'ErpInternalKeyId' in table 'ErpExternalKey': Dictionary type FK, target: ErpInternalKey, .NET type: int
Link to the internal key and thus the original table/record in SuperOffice that is being synchronizedDeclaration
public Int32FieldInfo ErpInternalKeyId { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
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 TablesInfo.GetErpExternalKeyInfo().
ErpInternalKeyId_InnerJoin_ErpInternalKey
Generated join from the foreign key ErpInternalKeyId in this table, to its target table ErpInternalKeyTableInfo.
Declaration
public TargetedInnerJoin<ErpInternalKeyTableInfo> ErpInternalKeyId_InnerJoin_ErpInternalKey { get; }
Property Value
Type | Description |
---|---|
TargetedInnerJoin<ErpInternalKeyTableInfo> |
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 TablesInfo.GetErpExternalKeyInfo().
ErpKey
Field 'ErpKey' in table 'ErpExternalKey': Dictionary type String[255], .NET type: string
The primary key from the ERP systemDeclaration
public StringFieldInfo ErpKey { get; }
Property Value
Type | Description |
---|---|
StringFieldInfo |
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 TablesInfo.GetErpExternalKeyInfo().
LeftOuterJoin_ErpSyncLog_ErpExternalKeyId
Generated left outer join from the primary key ErpExternalKeyId on this table, to ErpSyncLog.ErpExternalKeyId.
Declaration
public TargetedLeftOuterJoin<ErpSyncLogTableInfo> LeftOuterJoin_ErpSyncLog_ErpExternalKeyId { get; }
Property Value
Type | Description |
---|---|
TargetedLeftOuterJoin<ErpSyncLogTableInfo> |
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 TablesInfo.GetErpExternalKeyInfo().
MostRecentTimestamp
Field 'MostRecentTimestamp' in table 'ErpExternalKey': Dictionary type String[255], .NET type: string
Datetime, transaction number or other identification of the point in time of the most-recently seen actor in the ERP systemDeclaration
public StringFieldInfo MostRecentTimestamp { get; }
Property Value
Type | Description |
---|---|
StringFieldInfo |
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 TablesInfo.GetErpExternalKeyInfo().
Registered
Field 'registered' in table 'ErpExternalKey': Dictionary type UtcDateTime, .NET type: DateTime
Registered whenDeclaration
public DateTimeFieldInfo Registered { get; }
Property Value
Type | Description |
---|---|
DateTimeFieldInfo |
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 TablesInfo.GetErpExternalKeyInfo().
RegisteredAssociateId
Field 'registered_associate_id' in table 'ErpExternalKey': Dictionary type FK, target: Associate, .NET type: int
Registered by whomDeclaration
public Int32FieldInfo RegisteredAssociateId { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
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 TablesInfo.GetErpExternalKeyInfo().
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> |
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 TablesInfo.GetErpExternalKeyInfo().
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 |
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 TablesInfo.GetErpExternalKeyInfo().
Updated
Field 'updated' in table 'ErpExternalKey': Dictionary type UtcDateTime, .NET type: DateTime
Last updated whenDeclaration
public DateTimeFieldInfo Updated { get; }
Property Value
Type | Description |
---|---|
DateTimeFieldInfo |
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 TablesInfo.GetErpExternalKeyInfo().
UpdatedAssociateId
Field 'updated_associate_id' in table 'ErpExternalKey': Dictionary type FK, target: Associate, .NET type: int
Last updated by whomDeclaration
public Int32FieldInfo UpdatedAssociateId { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
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 TablesInfo.GetErpExternalKeyInfo().
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> |
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 TablesInfo.GetErpExternalKeyInfo().
UpdatedCount
Field 'updatedCount' in table 'ErpExternalKey': Dictionary type UShort, .NET type: short
Number of updates made to this recordDeclaration
public UInt16FieldInfo UpdatedCount { get; }
Property Value
Type | Description |
---|---|
UInt16FieldInfo |
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 TablesInfo.GetErpExternalKeyInfo().
Methods
IdxErpConnectionId(int)
Shortcut method for looking up using the database index ErpConnectionId, which spans the following fields:
Field | Description |
---|---|
ErpConnectionId | Link to the Erp connection the key relates to |
Declaration
public Restriction IdxErpConnectionId(int erpConnectionId)
Parameters
Type | Name | Description |
---|---|---|
int | erpConnectionId |
Returns
Type | Description |
---|---|
Restriction |
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 TablesInfo.GetErpExternalKeyInfo().
IdxErpConnectionIdActorType(int, ErpActorType)
Shortcut method for looking up using the database index ErpConnectionIdActorType, which spans the following fields:
Field | Description |
---|---|
ErpConnectionId | Link to the Erp connection the key relates to |
ActorType | The actor type within the ERP system of this synchronized record |
Declaration
public Restriction IdxErpConnectionIdActorType(int erpConnectionId, ErpActorType actorType)
Parameters
Type | Name | Description |
---|---|---|
int | erpConnectionId | |
ErpActorType | actorType |
Returns
Type | Description |
---|---|
Restriction |
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 TablesInfo.GetErpExternalKeyInfo().