Class ExternalPersonsProvider
Inheritance
Implements
Inherited Members
Namespace: SuperOffice.CRM.ArchiveLists
Assembly: SoDataBase.BusinessLogic.dll
Syntax
[ArchiveProvider("ExternalPersons", 1073741823)]
public class ExternalPersonsProvider : TypedQueryProviderBase<ArchiveRow, PersonPersonExtender>, IArchiveProviderQueryMapping, IArchiveQueryProvider, IArchiveProviderExtensible, IArchiveTypedProvider<ArchiveRow>, IArchiveTypedProviderBase, IArchiveProvider, IArchiveProviderHasRows, IArchiveProviderHasColumns, IArchiveProviderHasEntities
Constructors
ExternalPersonsProvider()
Create the PersonProvider instance, WITHOUT contact information
Declaration
public ExternalPersonsProvider()
ExternalPersonsProvider(bool)
Create the PersonProvider instance, with or without contact information
Declaration
public ExternalPersonsProvider(bool includeContact)
Parameters
Type | Name | Description |
---|---|---|
bool | includeContact | If true, columns from the contact table and related tables will be available |
Fields
_colIsActive
Declaration
protected ArchiveColumnInfo _colIsActive
Field Value
Type | Description |
---|---|
ArchiveColumnInfo |
_colIsDeleted
Declaration
protected ArchiveColumnInfo _colIsDeleted
Field Value
Type | Description |
---|---|
ArchiveColumnInfo |
_colRoleName
Declaration
protected ArchiveColumnInfo _colRoleName
Field Value
Type | Description |
---|---|
ArchiveColumnInfo |
_colUserId
Declaration
protected ArchiveColumnInfo _colUserId
Field Value
Type | Description |
---|---|
ArchiveColumnInfo |
Methods
GetEntityName(SoDataReader)
Determine the proper entity name for a raw row
Declaration
protected override string GetEntityName(SoDataReader reader)
Parameters
Type | Name | Description |
---|---|---|
SoDataReader | reader | SoDataReader with the current row |
Returns
Type | Description |
---|---|
string | Entity name, depending on the contents of the retired field |
Overrides
InnerMapFieldsAsync(CancellationToken)
Map fields during building of the query. We ensure the presence of the retired field in the query, needed to determine which entity a row belongs to. Depending on chosen entities, we may also add a a restriction to avoid fetching retired persons, since that entity is optional.
Declaration
public override Task InnerMapFieldsAsync(CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task |
Overrides
InnerPopulateRowFromReader(SoDataReader, ArchiveRow)
Populate data return rows from the reader. Since the provider is essentially just a wrapper around the PersonPersonExtender, this method does nothing.
Declaration
protected override void InnerPopulateRowFromReader(SoDataReader reader, ArchiveRow row)
Parameters
Type | Name | Description |
---|---|---|
SoDataReader | reader | SoDataReader with data |
ArchiveRow | row | Row to populate |