Class ConsentPersonTableInfo
Table 'ConsentPerson': Link table that defines who has which consents
Implements
Inherited Members
Namespace: SuperOffice.CRM.Data
Assembly: SoDataBase.dll
Syntax
[DatabaseTable("ConsentPerson")]
public class ConsentPersonTableInfo : 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 ConsentPerson in the database dictionary: ConsentPerson
Declaration
public const string DictionaryTableName = "ConsentPerson"
Field Value
Type | Description |
---|---|
System.String |
Properties
Comment
Field 'comment' in table 'ConsentPerson': Dictionary type String[256], .NET type: System.String
A comment describing why this GDPR change was made
Declaration
public StringFieldInfo Comment { get; }
Property Value
Type | Description |
---|---|
StringFieldInfo |
ConsentPersonId
Field 'consentperson_id' in table 'ConsentPerson': Dictionary type PK, .NET type: System.Int32
Primary key
Declaration
public Int32FieldInfo ConsentPersonId { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
ConsentPurposeId
Field 'consentPurpose_id' in table 'ConsentPerson': Dictionary type FK, .NET type: System.Int32
Legal base
Declaration
public Int32FieldInfo ConsentPurposeId { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
ConsentPurposeId_InnerJoin_ConsentPurpose
Generated join from the foreign key ConsentPurposeId in this table, to its target table ConsentPurposeTableInfo.
Declaration
public TargetedInnerJoin<ConsentPurposeTableInfo> ConsentPurposeId_InnerJoin_ConsentPurpose { get; }
Property Value
Type | Description |
---|---|
TargetedInnerJoin<ConsentPurposeTableInfo> |
ConsentSourceId
Field 'consentSource_id' in table 'ConsentPerson': Dictionary type FK, .NET type: System.Int32
Consent source
Declaration
public Int32FieldInfo ConsentSourceId { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
ConsentSourceId_InnerJoin_ConsentSource
Generated join from the foreign key ConsentSourceId in this table, to its target table ConsentSourceTableInfo.
Declaration
public TargetedInnerJoin<ConsentSourceTableInfo> ConsentSourceId_InnerJoin_ConsentSource { get; }
Property Value
Type | Description |
---|---|
TargetedInnerJoin<ConsentSourceTableInfo> |
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 ConsentPerson 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 |
---|---|
System.Int32 |
LegalBaseId
Field 'legalBase_id' in table 'ConsentPerson': Dictionary type FK, .NET type: System.Int32
Legal base
Declaration
public Int32FieldInfo LegalBaseId { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
LegalBaseId_InnerJoin_LegalBase
Generated join from the foreign key LegalBaseId in this table, to its target table LegalBaseTableInfo.
Declaration
public TargetedInnerJoin<LegalBaseTableInfo> LegalBaseId_InnerJoin_LegalBase { get; }
Property Value
Type | Description |
---|---|
TargetedInnerJoin<LegalBaseTableInfo> |
PersonId
Field 'person_id' in table 'ConsentPerson': Dictionary type FK, .NET type: System.Int32
Person who gave consent
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> |
Registered
Field 'registered' in table 'ConsentPerson': Dictionary type UtcDateTime, .NET type: System.DateTime
Registered when
Declaration
public DateTimeFieldInfo Registered { get; }
Property Value
Type | Description |
---|---|
DateTimeFieldInfo |
RegisteredAssociateId
Field 'registered_associate_id' in table 'ConsentPerson': Dictionary type FK, .NET type: System.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 |
Updated
Field 'updated' in table 'ConsentPerson': Dictionary type UtcDateTime, .NET type: System.DateTime
Last updated when
Declaration
public DateTimeFieldInfo Updated { get; }
Property Value
Type | Description |
---|---|
DateTimeFieldInfo |
UpdatedAssociateId
Field 'updated_associate_id' in table 'ConsentPerson': Dictionary type FK, .NET type: System.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 'ConsentPerson': Dictionary type UShort, .NET type: System.Int16
Number of updates made to this record
Declaration
public UInt16FieldInfo UpdatedCount { get; }
Property Value
Type | Description |
---|---|
UInt16FieldInfo |
Methods
IdxPersonId(Int32)
Shortcut method for looking up using the database index PersonId, which spans the following fields:
Field | Description |
---|---|
PersonId | Person who gave consent |
Declaration
public Restriction IdxPersonId(int personId)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | personId |
Returns
Type | Description |
---|---|
Restriction |