Class SelectionMemberTableInfo
Table 'selectionmember': Selection detail table Each row in a selection is represented by one record in this table. Contact_id is always filled in, person_id is optional, but if used, must point to a person belonging to the contact in contact_id.
Implements
Inherited Members
Namespace: SuperOffice.CRM.Data
Assembly: SoDataBase.dll
Syntax
[DatabaseTable("selectionmember")]
public class SelectionMemberTableInfo : 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 SelectionMember in the database dictionary: selectionmember
Declaration
public const string DictionaryTableName = "selectionmember"
Field Value
Type | Description |
---|---|
String |
Properties
ContactId
Field 'contact_id' in table 'selectionmember': Dictionary type FK, .NET type: Int32
Contact ID of selection member
Declaration
public Int32FieldInfo ContactId { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
ContactId_InnerJoin_Contact
Generated join from the foreign key ContactId in this table, to its target table ContactTableInfo.
Declaration
public TargetedInnerJoin<ContactTableInfo> ContactId_InnerJoin_Contact { get; }
Property Value
Type | Description |
---|---|
TargetedInnerJoin<ContactTableInfo> |
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 SelectionMember 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 |
PersonId
Field 'person_id' in table 'selectionmember': Dictionary type FK, .NET type: Int32
Person ID of selection member, if person
Declaration
public Int32FieldInfo PersonId { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
PersonId_InnerJoin_Person
Generated join from the foreign key PersonId in this table, to its target table PersonTableInfo.
Declaration
public TargetedInnerJoin<PersonTableInfo> PersonId_InnerJoin_Person { get; }
Property Value
Type | Description |
---|---|
TargetedInnerJoin<PersonTableInfo> |
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 |
SelectionId
Field 'selection_id' in table 'selectionmember': Dictionary type FK, .NET type: Int32
Owning selection
Declaration
public Int32FieldInfo SelectionId { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
SelectionId_InnerJoin_Selection
Generated join from the foreign key SelectionId in this table, to its target table SelectionTableInfo.
Declaration
public TargetedInnerJoin<SelectionTableInfo> SelectionId_InnerJoin_Selection { get; }
Property Value
Type | Description |
---|---|
TargetedInnerJoin<SelectionTableInfo> |
SelectionmemberId
Field 'selectionmember_id' in table 'selectionmember': Dictionary type PK, .NET type: Int32
Primary key
Declaration
public Int32FieldInfo SelectionmemberId { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
TargetRecordId
Field 'targetRecordId' in table 'selectionmember': Dictionary type RecordId, .NET type: Int32
Record id of the target that this selection member points to
Declaration
public Int32FieldInfo TargetRecordId { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
TargetTableNumber
Field 'targetTableNumber' in table 'selectionmember': Dictionary type TableNumber, .NET type: Int16
Table number of the target that this selection member points to
Declaration
public UInt16FieldInfo TargetTableNumber { get; }
Property Value
Type | Description |
---|---|
UInt16FieldInfo |
Methods
IdxContactId(Int32)
Shortcut method for looking up using the database index ContactId, which spans the following fields:
Field | Description |
---|---|
ContactId | Contact ID of selection member |
Declaration
public Restriction IdxContactId(int contactId)
Parameters
Type | Name | Description |
---|---|---|
Int32 | contactId |
Returns
Type | Description |
---|---|
Restriction |
IdxSelectionId(Int32)
Shortcut method for looking up using the database index SelectionId, which spans the following fields:
Field | Description |
---|---|
SelectionId | Owning selection |
Declaration
public Restriction IdxSelectionId(int selectionId)
Parameters
Type | Name | Description |
---|---|---|
Int32 | selectionId |
Returns
Type | Description |
---|---|
Restriction |