Class PhoneExtenderBase
This is the base class for all extenders that add Phone fields to their base query. It handles all phone-related fields.
Derived classes should simply implement
the
Inheritance
Implements
Inherited Members
Namespace: SuperOffice.CRM.ArchiveLists
Assembly: SoDataBase.dll
Syntax
public abstract class PhoneExtenderBase : TableExtenderBase<PhoneTableInfo>, IArchiveProviderQueryMapping, IArchiveExtender, IArchiveProviderDoesExtend, IArchiveProviderHasColumns, IArchiveProviderExtensible, IPlugin
Constructors
PhoneExtenderBase()
This is the base class for all extenders that add Phone fields to their base query. It handles all phone-related fields.
Derived classes should simply implement
the
Declaration
protected PhoneExtenderBase()
Fields
_colDescription
This is the base class for all extenders that add Phone fields to their base query. It handles all phone-related fields.
Derived classes should simply implement
the
Declaration
protected ArchiveColumnInfo _colDescription
Field Value
Type | Description |
---|---|
ArchiveColumnInfo |
_colFormattedNumber
This is the base class for all extenders that add Phone fields to their base query. It handles all phone-related fields.
Derived classes should simply implement
the
Declaration
protected ArchiveColumnInfo _colFormattedNumber
Field Value
Type | Description |
---|---|
ArchiveColumnInfo |
ColumnFormattedNumber
This is the base class for all extenders that add Phone fields to their base query. It handles all phone-related fields.
Derived classes should simply implement
the
Declaration
public const string ColumnFormattedNumber = "formattedNumber"
Field Value
Type | Description |
---|---|
String |
Properties
ParentCountryId
Subclass contract: A country ID, from the owning entity, must be provided; including its addition to the returnfields. Same pattern as for Address.
Declaration
protected abstract FieldInfo ParentCountryId { get; }
Property Value
Type | Description |
---|---|
FieldInfo |
Methods
InnerModifyQuery()
Add/map return fields to the query; call SetJoin to obtain the contact table info instance from the derived class
Declaration
protected override void InnerModifyQuery()
Overrides
InnerPopulateRowFromReader(SoDataReader, ArchiveRow)
Populate the archive row with columns that are not handled by the base class. On the first pass we also fetch the users' home country, needed by the phone formatter
Declaration
protected override void InnerPopulateRowFromReader(SoDataReader reader, ArchiveRow row)
Parameters
Type | Name | Description |
---|---|---|
SoDataReader | reader | Reader with data fields |
ArchiveRow | row | Row to be populated |
Overrides
StandardFormattedNumber(String)
Create a 'formattedNumber' column, taking into account whether it should get an initial prefix or not
Declaration
public static ArchiveColumnInfo StandardFormattedNumber(string prefix)
Parameters
Type | Name | Description |
---|---|---|
String | prefix |
Returns
Type | Description |
---|---|
ArchiveColumnInfo |