Show / Hide Table of Contents

Class RefCountsTableInfo

Table 'RefCounts': Number counter for all tables that generate numbers, e.g. templates, contacts... This table is used for the number allocation system and should not be confused with sequence, used for allocating internal ID's. This table is replicated during generation of satellites and during local update for travellers, using special logic. By default it contains rows for the SuperOffice standard counters, including one row for each DocTemplate record. It is permissible to add new rows to this table, and such records are maintainable through the Maintenance client. Changing the contents of the standard records is not recommended.

Inheritance
Object
TableInfo
RefCountsTableInfo
Implements
ICloneable
Inherited Members
TableInfo.ToString()
TableInfo.RegisterFields(FieldInfo[])
TableInfo.FieldInfoFromSoField(SoField)
TableInfo.Clone()
TableInfo.IsSameTable(TableInfo)
TableInfo.FindField(String)
TableInfo.ProtAll
TableInfo.HashCheckFields
TableInfo.TableName
TableInfo.DbName
TableInfo.IsDictionaryTable
TableInfo.All
TableInfo.Item[String]
TableInfo.PrimaryKeyField
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: SuperOffice.CRM.Data
Assembly: SoDataBase.dll
Syntax
[DatabaseTable("RefCounts")]
public class RefCountsTableInfo : 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 RefCounts in the database dictionary: RefCounts

Declaration
public const string DictionaryTableName = "RefCounts"
Field Value
Type Description
String

Properties

CurrentValue

Field 'currentValue' in table 'RefCounts': Dictionary type Id, .NET type: Int32

Current value of counter

Declaration
public Int32FieldInfo CurrentValue { 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
TableInfo.Definition

DictionaryTableNumber

Table number for table RefCounts 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

FieldId

Field 'fieldId' in table 'RefCounts': Dictionary type FieldId, .NET type: Int32

The field (and thereby table) this counter is assigned to

Declaration
public Int32FieldInfo FieldId { get; }
Property Value
Type Description
Int32FieldInfo

Flags

Field 'flags' in table 'RefCounts': Dictionary type Enum, .NET type: RefcountFlags

Unique, active, read-only, allow blank, …

Declaration
public RefcountFlagsFieldInfo Flags { get; }
Property Value
Type Description
RefcountFlagsFieldInfo

LeftOuterJoin_RefCountRange_RefCountsId

Generated left outer join from the primary key RefCountsId on this table, to RefCountRange.RefCountsId.

Declaration
public TargetedLeftOuterJoin<RefCountRangeTableInfo> LeftOuterJoin_RefCountRange_RefCountsId { get; }
Property Value
Type Description
TargetedLeftOuterJoin<RefCountRangeTableInfo>

RecordId

Field 'recordId' in table 'RefCounts': Dictionary type Id, .NET type: Int32

Record id in target table, used when there are separate counters for each target record

Declaration
public Int32FieldInfo RecordId { get; }
Property Value
Type Description
Int32FieldInfo

RefCountsId

Field 'RefCounts_id' in table 'RefCounts': Dictionary type PK, .NET type: Int32

Primary key

Declaration
public Int32FieldInfo RefCountsId { get; }
Property Value
Type Description
Int32FieldInfo

Registered

Field 'registered' in table 'RefCounts': 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 'RefCounts': 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

SatPrefix

Field 'satPrefix' in table 'RefCounts': Dictionary type UInt, .NET type: UInt32

size of prefix for Satellite use of this counter

Declaration
public FieldInfo SatPrefix { get; }
Property Value
Type Description
FieldInfo

TravelPrefix

Field 'travelPrefix' in table 'RefCounts': Dictionary type UInt, .NET type: UInt32

size of prefix for Travel use of ths counter

Declaration
public FieldInfo TravelPrefix { get; }
Property Value
Type Description
FieldInfo

Updated

Field 'updated' in table 'RefCounts': 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 'RefCounts': 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 'RefCounts': Dictionary type UShort, .NET type: Int16

Number of updates made to this record

Declaration
public UInt16FieldInfo UpdatedCount { get; }
Property Value
Type Description
UInt16FieldInfo

Methods

IdxFieldId(Int32)

Shortcut method for looking up using the database index FieldId, which spans the following fields:

FieldDescription
FieldIdThe field (and thereby table) this counter is assigned to
Declaration
public Restriction IdxFieldId(int fieldId)
Parameters
Type Name Description
Int32 fieldId
Returns
Type Description
Restriction

Implements

System.ICloneable

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top