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 ExtenderBase.SetJoin method to join an PhoneTableInfo to the RootQuery.
Inheritance
Implements
Inherited Members
Namespace: SuperOffice.CRM.ArchiveLists
Assembly: SoDataBase.BusinessLogic.dll
Syntax
public abstract class PhoneExtenderBase : TableExtenderBase<PhoneTableInfo>, IArchiveProviderQueryMapping, IArchiveExtender, IArchiveProviderDoesExtend, IArchiveProviderHasColumns, IArchiveProviderExtensible
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 ExtenderBase.SetJoin method to join an PhoneTableInfo to the RootQuery.
Declaration
protected PhoneExtenderBase()
Fields
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 ExtenderBase.SetJoin method to join an PhoneTableInfo to the RootQuery.
Declaration
public const string ColumnFormattedNumber = "formattedNumber"
Field Value
| Type | Description |
|---|---|
| string |
_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 ExtenderBase.SetJoin method to join an PhoneTableInfo to the RootQuery.
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 ExtenderBase.SetJoin method to join an PhoneTableInfo to the RootQuery.
Declaration
protected ArchiveColumnInfo _colFormattedNumber
Field Value
| Type | Description |
|---|---|
| ArchiveColumnInfo |
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 |