Class StatusDefTableInfo
Table 'StatusDef': Status definitions. Name and description are in LocaleText for internationalization
Implements
Inherited Members
Namespace: SuperOffice.CRM.Data
Assembly: SoDataBase.dll
Syntax
[DatabaseTable("StatusDef")]
public class StatusDefTableInfo : 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 StatusDef in the database dictionary: StatusDef
Declaration
public const string DictionaryTableName = "StatusDef"
Field Value
Type | Description |
---|---|
System.String |
Properties
DefaultTask
Field 'defaultTask' in table 'StatusDef': Dictionary type FK, .NET type: System.Int32
Default task type for this status; the default task text is in the text table (since it can be long), and may contain template variables
Declaration
public Int32FieldInfo DefaultTask { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
DefaultTask_InnerJoin_Task
Generated join from the foreign key DefaultTask in this table, to its target table TaskTableInfo.
Declaration
public TargetedInnerJoin<TaskTableInfo> DefaultTask_InnerJoin_Task { get; }
Property Value
Type | Description |
---|---|
TargetedInnerJoin<TaskTableInfo> |
Definition
Definition of the table as described in the deployed runtime dictionary
Declaration
public override SoTable Definition { get; }
Property Value
Type | Description |
---|---|
SoTable |
Overrides
Deleted
Field 'deleted' in table 'StatusDef': Dictionary type Bool, .NET type: System.Int16
Deleted flag, 1 if this record is deleted (never from the database)
Declaration
public UInt16FieldInfo Deleted { get; }
Property Value
Type | Description |
---|---|
UInt16FieldInfo |
DictionaryTableNumber
Table number for table StatusDef 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 |
DirtyOnChange
Field 'dirtyOnChange' in table 'StatusDef': Dictionary type Bool, .NET type: System.Int16
If 1, the statusValue records should be set to dirty whenever information related to the owning entity changes. If 0, nothing happens.
Declaration
public UInt16FieldInfo DirtyOnChange { get; }
Property Value
Type | Description |
---|---|
UInt16FieldInfo |
GenerationStart
Field 'generationStart' in table 'StatusDef': Dictionary type DateTime, .NET type: System.DateTime
When was the last regeneration started
Declaration
public DateTimeFieldInfo GenerationStart { get; }
Property Value
Type | Description |
---|---|
DateTimeFieldInfo |
IsVisual
Field 'isVisual' in table 'StatusDef': Dictionary type Bool, .NET type: System.Int16
Should the status be visualized (active) in the client
Declaration
public UInt16FieldInfo IsVisual { get; }
Property Value
Type | Description |
---|---|
UInt16FieldInfo |
LastGenerated
Field 'lastGenerated' in table 'StatusDef': Dictionary type DateTime, .NET type: System.DateTime
When was the last generation finished (i.e., statusValue rows created)
Declaration
public DateTimeFieldInfo LastGenerated { get; }
Property Value
Type | Description |
---|---|
DateTimeFieldInfo |
LeftOuterJoin_StatusValue_StatusDefId
Generated left outer join from the primary key StatusDefId on this table, to StatusValue.StatusDefId.
Declaration
public TargetedLeftOuterJoin<StatusValueTableInfo> LeftOuterJoin_StatusValue_StatusDefId { get; }
Property Value
Type | Description |
---|---|
TargetedLeftOuterJoin<StatusValueTableInfo> |
NeedsUpdate
Field 'needsUpdate' in table 'StatusDef': Dictionary type Bool, .NET type: System.Int16
Is the definition dirty, ie., ALL values are invalid until a recalculation; this flag is set when the status DEFINITION is changed, as opposed to the flag on StatusValue
Declaration
public UInt16FieldInfo NeedsUpdate { get; }
Property Value
Type | Description |
---|---|
UInt16FieldInfo |
NumMatches
Field 'numMatches' in table 'StatusDef': Dictionary type UInt, .NET type: System.UInt32
Number of targets that have this status, this should be the number of rows in StatusValue pointing to this definition, and that have isSignalled set to 1
Declaration
public FieldInfo NumMatches { get; }
Property Value
Type | Description |
---|---|
FieldInfo |
NumNeedUpdate
Field 'numNeedUpdate' in table 'StatusDef': Dictionary type UInt, .NET type: System.UInt32
Number of targets that had this status, but have their needsUpdate bit set due to some change
Declaration
public FieldInfo NumNeedUpdate { get; }
Property Value
Type | Description |
---|---|
FieldInfo |
OwnerTable
Field 'ownerTable' in table 'StatusDef': Dictionary type TableNumber, .NET type: System.Int16
The owning entity, currently contact or project
Declaration
public UInt16FieldInfo OwnerTable { get; }
Property Value
Type | Description |
---|---|
UInt16FieldInfo |
Rank
Field 'rank' in table 'StatusDef': Dictionary type UShort, .NET type: System.Int16
Priority rank, in case more than one status is signalled. Lowest wins
Declaration
public UInt16FieldInfo Rank { get; }
Property Value
Type | Description |
---|---|
UInt16FieldInfo |
Registered
Field 'registered' in table 'StatusDef': 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 'StatusDef': 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 |
StatusDefId
Field 'StatusDef_id' in table 'StatusDef': Dictionary type PK, .NET type: System.Int32
Primary key
Declaration
public Int32FieldInfo StatusDefId { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
Updated
Field 'updated' in table 'StatusDef': 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 'StatusDef': 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 'StatusDef': Dictionary type UShort, .NET type: System.Int16
Number of updates made to this record
Declaration
public UInt16FieldInfo UpdatedCount { get; }
Property Value
Type | Description |
---|---|
UInt16FieldInfo |