Show / Hide Table of Contents

Class TravelIDMappingTableInfo

Table 'travelidmapping': Mapping of primary keys between Travel databases and the mother database All travel database transactions get a high id to be able to see that this entry came from a database outside the central database. When update files are read into the central database, they get a normal low id. This table remembers the high travel id to map it to the low central id as long as this travel user is travelling.

Inheritance
Object
TableInfo
TravelIDMappingTableInfo
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("travelidmapping")]
public class TravelIDMappingTableInfo : 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 TravelIDMapping in the database dictionary: travelidmapping

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

Properties

AssociateId

Field 'associate_id' in table 'travelidmapping': Dictionary type FK, .NET type: Int32

Associate id (traveller)

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

AssociateId_InnerJoin_Associate

Generated join from the foreign key AssociateId in this table, to its target table AssociateTableInfo.

Declaration
public TargetedInnerJoin<AssociateTableInfo> AssociateId_InnerJoin_Associate { get; }
Property Value
Type Description
TargetedInnerJoin<AssociateTableInfo>

CdbName

Field 'cdbName' in table 'travelidmapping': Dictionary type String[30], .NET type: String

Conceptual database name if != standard database

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

Counter

Field 'counter' in table 'travelidmapping': Dictionary type UInt, .NET type: UInt32

How many consecutive ID's

Declaration
public FieldInfo Counter { get; }
Property Value
Type Description
FieldInfo

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

LocalId

Field 'local_id' in table 'travelidmapping': Dictionary type Id, .NET type: Int32

ID on traveller

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

ParentId

Field 'parent_id' in table 'travelidmapping': Dictionary type Id, .NET type: Int32

ID on parent database

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

Registered

Field 'registered' in table 'travelidmapping': 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 'travelidmapping': 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>

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

TableNumber

Field 'table_number' in table 'travelidmapping': Dictionary type TableNumber, .NET type: Int16

Database table number

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

TravelidmappingId

Field 'travelidmapping_id' in table 'travelidmapping': Dictionary type PK, .NET type: Int32

Primary key

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

Updated

Field 'updated' in table 'travelidmapping': 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 'travelidmapping': 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 'travelidmapping': Dictionary type UShort, .NET type: Int16

Number of updates made to this record

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

Methods

IdxAssociateId(Int32)

Shortcut method for looking up using the database index AssociateId, which spans the following fields:

FieldDescription
AssociateIdAssociate id (traveller)
Declaration
public Restriction IdxAssociateId(int associateId)
Parameters
Type Name Description
Int32 associateId
Returns
Type Description
Restriction

IdxAssociateIdTableNumber(Int32, Int16)

Shortcut method for looking up using the database index AssociateIdTableNumber, which spans the following fields:

FieldDescription
AssociateIdAssociate id (traveller)
TableNumberDatabase table number
Declaration
public Restriction IdxAssociateIdTableNumber(int associateId, short tableNumber)
Parameters
Type Name Description
Int32 associateId
Int16 tableNumber
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