Class PhoneFormatTableInfo
Table 'PhoneFormat': Formatting information for telephone numbers
Implements
Inherited Members
Namespace: SuperOffice.CRM.Data
Assembly: SoDataBase.dll
Syntax
[DatabaseTable("PhoneFormat")]
public class PhoneFormatTableInfo : 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 PhoneFormat in the database dictionary: PhoneFormat
Declaration
public const string DictionaryTableName = "PhoneFormat"
Field Value
Type | Description |
---|---|
System.String |
Properties
AreaCodeLength
Field 'areaCodeLength' in table 'PhoneFormat': Dictionary type String[40], .NET type: System.String
Length of area code (can be interval)
Declaration
public StringFieldInfo AreaCodeLength { get; }
Property Value
Type | Description |
---|---|
StringFieldInfo |
CountryId
Field 'countryId' in table 'PhoneFormat': Dictionary type FK, target: Country, .NET type: System.Int32
Country this format record is valid for
Declaration
public Int32FieldInfo CountryId { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
CountryId_InnerJoin_Country
Generated join from the foreign key CountryId in this table, to its target table CountryTableInfo.
Declaration
public TargetedInnerJoin<CountryTableInfo> CountryId_InnerJoin_Country { get; }
Property Value
Type | Description |
---|---|
TargetedInnerJoin<CountryTableInfo> |
Definition
Definition of the table as described in the deployed runtime dictionary
Declaration
public override SoTable Definition { get; }
Property Value
Type | Description |
---|---|
SoTable |
Overrides
Description
Field 'description' in table 'PhoneFormat': Dictionary type String[255], .NET type: System.String
Description of this format
Declaration
public StringFieldInfo Description { get; }
Property Value
Type | Description |
---|---|
StringFieldInfo |
DictionaryTableNumber
Table number for table PhoneFormat 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 |
DontFormat
Field 'dontFormat' in table 'PhoneFormat': Dictionary type Bool, .NET type: System.Int16
If 1, do not apply any formatting to this number
Declaration
public UInt16FieldInfo DontFormat { get; }
Property Value
Type | Description |
---|---|
UInt16FieldInfo |
IsActive
Field 'isActive' in table 'PhoneFormat': Dictionary type Bool, .NET type: System.Int16
Is this format record active (handy for experimenting)
Declaration
public UInt16FieldInfo IsActive { get; }
Property Value
Type | Description |
---|---|
UInt16FieldInfo |
IsBuiltIn
Field 'isBuiltIn' in table 'PhoneFormat': Dictionary type Bool, .NET type: System.Int16
Does this row come from SuperOffice priming data
Declaration
public UInt16FieldInfo IsBuiltIn { get; }
Property Value
Type | Description |
---|---|
UInt16FieldInfo |
LocalLength
Field 'localLength' in table 'PhoneFormat': Dictionary type String[40], .NET type: System.String
Length of local part of telephone number (can be interval)
Declaration
public StringFieldInfo LocalLength { get; }
Property Value
Type | Description |
---|---|
StringFieldInfo |
Mask
Field 'mask' in table 'PhoneFormat': Dictionary type String[40], .NET type: System.String
Formatting mask to be applied
Declaration
public StringFieldInfo Mask { get; }
Property Value
Type | Description |
---|---|
StringFieldInfo |
PhoneFormatId
Field 'PhoneFormat_id' in table 'PhoneFormat': Dictionary type PK, .NET type: System.Int32
Primary key
Declaration
public Int32FieldInfo PhoneFormatId { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
Prefix
Field 'prefix' in table 'PhoneFormat': Dictionary type String[40], .NET type: System.String
Prefix that triggers this format
Declaration
public StringFieldInfo Prefix { get; }
Property Value
Type | Description |
---|---|
StringFieldInfo |
Registered
Field 'registered' in table 'PhoneFormat': 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 'PhoneFormat': Dictionary type FK, target: Associate, .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
public static SoTable RuntimeDefinition { get; }
Property Value
Type | Description |
---|---|
SoTable |
Updated
Field 'updated' in table 'PhoneFormat': 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 'PhoneFormat': Dictionary type FK, target: Associate, .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 'PhoneFormat': 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
IdxPrefix(String)
Shortcut method for looking up using the database index Prefix, which spans the following fields:
Field | Description |
---|---|
Prefix | Prefix that triggers this format |
Declaration
public Restriction IdxPrefix(string prefix)
Parameters
Type | Name | Description |
---|---|---|
System.String | prefix |
Returns
Type | Description |
---|---|
Restriction |