Class VisibleForTableInfo
Table 'VisibleFor': Visible for rights, who may see this appointment/document, sale, salehist or selection
Implements
Inherited Members
Namespace: SuperOffice.CRM.Data
Assembly: SoDataBase.dll
Syntax
[DatabaseTable("VisibleFor")]
public class VisibleForTableInfo : 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 VisibleFor in the database dictionary: VisibleFor
Declaration
public const string DictionaryTableName = "VisibleFor"
Field Value
Type | Description |
---|---|
String |
Properties
AppointmentId
Field 'appointmentId' in table 'VisibleFor': Dictionary type FK, .NET type: Int32
Shortcut: appointment id, if tableId = appointment; to give faster joins
Declaration
public Int32FieldInfo AppointmentId { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
AppointmentId_InnerJoin_Appointment
Generated join from the foreign key AppointmentId in this table, to its target table AppointmentTableInfo.
Declaration
public TargetedInnerJoin<AppointmentTableInfo> AppointmentId_InnerJoin_Appointment { get; }
Property Value
Type | Description |
---|---|
TargetedInnerJoin<AppointmentTableInfo> |
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 VisibleFor 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 |
EncryptedCheck
Field 'encryptedCheck' in table 'VisibleFor': Dictionary type String[255], .NET type: String
Encrypted checksum field, to prevent tampering
Declaration
public StringFieldInfo EncryptedCheck { get; }
Property Value
Type | Description |
---|---|
StringFieldInfo |
ForAll
Field 'forAll' in table 'VisibleFor': Dictionary type Id, .NET type: Int32
1 = visible to all, 0 = not visible to all
Declaration
public Int32FieldInfo ForAll { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
ForAssocId
Field 'forAssocId' in table 'VisibleFor': Dictionary type FK, .NET type: Int32
0 = not visible to any particular associate, or ID of associate
Declaration
public Int32FieldInfo ForAssocId { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
ForAssocId_InnerJoin_Associate
Generated join from the foreign key ForAssocId in this table, to its target table AssociateTableInfo.
Declaration
public TargetedInnerJoin<AssociateTableInfo> ForAssocId_InnerJoin_Associate { get; }
Property Value
Type | Description |
---|---|
TargetedInnerJoin<AssociateTableInfo> |
ForGroupId
Field 'forGroupId' in table 'VisibleFor': Dictionary type FK, .NET type: Int32
0 = not visible to any particular group, or ID of group
Declaration
public Int32FieldInfo ForGroupId { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
ForGroupId_InnerJoin_UserGroup
Generated join from the foreign key ForGroupId in this table, to its target table UserGroupTableInfo.
Declaration
public TargetedInnerJoin<UserGroupTableInfo> ForGroupId_InnerJoin_UserGroup { get; }
Property Value
Type | Description |
---|---|
TargetedInnerJoin<UserGroupTableInfo> |
RecordId
Field 'recordId' in table 'VisibleFor': Dictionary type RecordId, .NET type: Int32
ID of row this right applies to
Declaration
public Int32FieldInfo RecordId { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
Registered
Field 'registered' in table 'VisibleFor': 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 'VisibleFor': 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 |
SaleHistId
Field 'saleHistId' in table 'VisibleFor': Dictionary type FK, .NET type: Int32
Shortcut: salehist id, if tableId = salehist to give faster joins
Declaration
public Int32FieldInfo SaleHistId { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
SaleHistId_InnerJoin_SaleHist
Generated join from the foreign key SaleHistId in this table, to its target table SaleHistTableInfo.
Declaration
public TargetedInnerJoin<SaleHistTableInfo> SaleHistId_InnerJoin_SaleHist { get; }
Property Value
Type | Description |
---|---|
TargetedInnerJoin<SaleHistTableInfo> |
SaleId
Field 'saleId' in table 'VisibleFor': Dictionary type FK, .NET type: Int32
Shortcut: sale id, if tableId = sale to give faster joins
Declaration
public Int32FieldInfo SaleId { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
SaleId_InnerJoin_Sale
Generated join from the foreign key SaleId in this table, to its target table SaleTableInfo.
Declaration
public TargetedInnerJoin<SaleTableInfo> SaleId_InnerJoin_Sale { get; }
Property Value
Type | Description |
---|---|
TargetedInnerJoin<SaleTableInfo> |
SelectionId
Field 'selectionId' in table 'VisibleFor': Dictionary type FK, .NET type: Int32
Shortcut: selection id, if tableId = selection to give faster joins
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> |
TableId
Field 'tableId' in table 'VisibleFor': Dictionary type TableNumber, .NET type: Int16
ID of table this right is valid for
Declaration
public UInt16FieldInfo TableId { get; }
Property Value
Type | Description |
---|---|
UInt16FieldInfo |
Updated
Field 'updated' in table 'VisibleFor': 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 'VisibleFor': 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 'VisibleFor': Dictionary type UShort, .NET type: Int16
Number of updates made to this record
Declaration
public UInt16FieldInfo UpdatedCount { get; }
Property Value
Type | Description |
---|---|
UInt16FieldInfo |
VisibleForId
Field 'VisibleFor_id' in table 'VisibleFor': Dictionary type PK, .NET type: Int32
Primary key
Declaration
public Int32FieldInfo VisibleForId { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
Methods
IdxRecordId(Int32)
Shortcut method for looking up using the database index RecordId, which spans the following fields:
Field | Description |
---|---|
RecordId | ID of row this right applies to |
Declaration
public Restriction IdxRecordId(int recordId)
Parameters
Type | Name | Description |
---|---|---|
Int32 | recordId |
Returns
Type | Description |
---|---|
Restriction |
IdxTableId(Int16)
Shortcut method for looking up using the database index TableId, which spans the following fields:
Field | Description |
---|---|
TableId | ID of table this right is valid for |
Declaration
public Restriction IdxTableId(short tableId)
Parameters
Type | Name | Description |
---|---|---|
Int16 | tableId |
Returns
Type | Description |
---|---|
Restriction |
IdxTableIdRecordId(Int16, Int32)
Shortcut method for looking up using the database index TableIdRecordId, which spans the following fields:
Field | Description |
---|---|
TableId | ID of table this right is valid for |
RecordId | ID of row this right applies to |
Declaration
public Restriction IdxTableIdRecordId(short tableId, int recordId)
Parameters
Type | Name | Description |
---|---|---|
Int16 | tableId | |
Int32 | recordId |
Returns
Type | Description |
---|---|
Restriction |
IdxTableIdRecordIdForAll(Int16, Int32, Int32)
Shortcut method for looking up using the database index TableIdRecordIdForAll, which spans the following fields:
Field | Description |
---|---|
TableId | ID of table this right is valid for |
RecordId | ID of row this right applies to |
ForAll | 1 = visible to all, 0 = not visible to all |
Declaration
public Restriction IdxTableIdRecordIdForAll(short tableId, int recordId, int forAll)
Parameters
Type | Name | Description |
---|---|---|
Int16 | tableId | |
Int32 | recordId | |
Int32 | forAll |
Returns
Type | Description |
---|---|
Restriction |
IdxTableIdRecordIdForAllForGroupId(Int16, Int32, Int32, Int32)
Shortcut method for looking up using the database index TableIdRecordIdForAllForGroupId, which spans the following fields:
Field | Description |
---|---|
TableId | ID of table this right is valid for |
RecordId | ID of row this right applies to |
ForAll | 1 = visible to all, 0 = not visible to all |
ForGroupId | 0 = not visible to any particular group, or ID of group |
Declaration
public Restriction IdxTableIdRecordIdForAllForGroupId(short tableId, int recordId, int forAll, int forGroupId)
Parameters
Type | Name | Description |
---|---|---|
Int16 | tableId | |
Int32 | recordId | |
Int32 | forAll | |
Int32 | forGroupId |
Returns
Type | Description |
---|---|
Restriction |