Class BinaryObjectLinkTableInfo
Table 'BinaryObjectLink': Link table, connects a BinaryObject with one or more owners
Implements
Inherited Members
Namespace: SuperOfficeCRMData
Assembly: SoDataBase.dll
Syntax
[DatabaseTable("BinaryObjectLink")]
public class BinaryObjectLinkTableInfo : 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.GetBinaryObjectLinkInfo().
Fields
DictionaryTableName
Conceptual name of table BinaryObjectLink in the database dictionary: BinaryObjectLink
Declaration
public const string DictionaryTableName = "BinaryObjectLink"
Field Value
| Type | Description |
|---|---|
| string |
Properties
BinaryObjectId
Field 'binaryObjectId' in table 'BinaryObjectLink': Dictionary type FK, target: BinaryObject, .NET type: int
The binary object we link to
Declaration
public Int32FieldInfo BinaryObjectId { get; }
Property Value
| Type | Description |
|---|---|
| Int32FieldInfo |
BinaryObjectId_InnerJoin_BinaryObject
Generated join from the foreign key BinaryObjectId in this table, to its target table BinaryObjectTableInfo.
Declaration
public TargetedInnerJoin<BinaryObjectTableInfo> BinaryObjectId_InnerJoin_BinaryObject { get; }
Property Value
| Type | Description |
|---|---|
| TargetedInnerJoinBinaryObjectTableInfo |
BinaryObjectLinkId
Field 'BinaryObjectLink_id' in table 'BinaryObjectLink': Dictionary type PK, .NET type: int
Primary key
Declaration
public Int32FieldInfo BinaryObjectLinkId { get; }
Property Value
| Type | Description |
|---|---|
| Int32FieldInfo |
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 BinaryObjectLink 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 |
LinkComment
Field 'linkComment' in table 'BinaryObjectLink': Dictionary type String[255], .NET type: string
Link comment, optional
Declaration
public StringFieldInfo LinkComment { get; }
Property Value
| Type | Description |
|---|---|
| StringFieldInfo |
LinkType
Field 'linkType' in table 'BinaryObjectLink': Dictionary type Enum, .NET type: BlobLinkType
The link type
Declaration
public BlobLinkTypeFieldInfo LinkType { get; }
Property Value
| Type | Description |
|---|---|
| BlobLinkTypeFieldInfo |
OwnerRecord
Field 'ownerRecord' in table 'BinaryObjectLink': Dictionary type RecordId, .NET type: int
The owner record
Declaration
public Int32FieldInfo OwnerRecord { get; }
Property Value
| Type | Description |
|---|---|
| Int32FieldInfo |
OwnerTable
Field 'ownerTable' in table 'BinaryObjectLink': Dictionary type TableNumber, .NET type: short
The owner table
Declaration
public UInt16FieldInfo OwnerTable { get; }
Property Value
| Type | Description |
|---|---|
| UInt16FieldInfo |
Rank
Field 'rank' in table 'BinaryObjectLink': Dictionary type UShort, .NET type: short
Link rank, in case there are more of one type to one owner
Declaration
public UInt16FieldInfo Rank { get; }
Property Value
| Type | Description |
|---|---|
| UInt16FieldInfo |
Registered
Field 'registered' in table 'BinaryObjectLink': 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 'BinaryObjectLink': Dictionary type FK, target: Associate, .NET type: int
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 |
|---|---|
| TargetedInnerJoinAssociateTableInfo |
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 |
Updated
Field 'updated' in table 'BinaryObjectLink': 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 'BinaryObjectLink': Dictionary type FK, target: Associate, .NET type: int
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 |
|---|---|
| TargetedInnerJoinAssociateTableInfo |
UpdatedCount
Field 'updatedCount' in table 'BinaryObjectLink': Dictionary type UShort, .NET type: short
Number of updates made to this record
Declaration
public UInt16FieldInfo UpdatedCount { get; }
Property Value
| Type | Description |
|---|---|
| UInt16FieldInfo |
Methods
IdxOwnerTable(short)
Shortcut method for looking up using the database index OwnerTable, which spans the following fields:
| Field | Description |
|---|---|
| OwnerTable | The owner table |
Declaration
public Restriction IdxOwnerTable(short ownerTable)
Parameters
| Type | Name | Description |
|---|---|---|
| short | ownerTable |
Returns
| Type | Description |
|---|---|
| Restriction |
IdxOwnerTableOwnerRecord(short, int)
Shortcut method for looking up using the database index OwnerTableOwnerRecord, which spans the following fields:
| Field | Description |
|---|---|
| OwnerTable | The owner table |
| OwnerRecord | The owner record |
Declaration
public Restriction IdxOwnerTableOwnerRecord(short ownerTable, int ownerRecord)
Parameters
| Type | Name | Description |
|---|---|---|
| short | ownerTable | |
| int | ownerRecord |
Returns
| Type | Description |
|---|---|
| Restriction |
IdxOwnerTableOwnerRecordLinkType(short, int, BlobLinkType)
Shortcut method for looking up using the database index OwnerTableOwnerRecordLinkType, which spans the following fields:
| Field | Description |
|---|---|
| OwnerTable | The owner table |
| OwnerRecord | The owner record |
| LinkType | The link type |
Declaration
public Restriction IdxOwnerTableOwnerRecordLinkType(short ownerTable, int ownerRecord, BlobLinkType linkType)
Parameters
| Type | Name | Description |
|---|---|---|
| short | ownerTable | |
| int | ownerRecord | |
| BlobLinkType | linkType |
Returns
| Type | Description |
|---|---|
| Restriction |