Class LinksBySourceProviderBase<MainExtenderType>
Base class for link data providers that are addressed by source - that is, where the source (left) side of the link is a known
appointment, sale or document, and we wish to retrieve the right side.
Inheritance
LinksBySourceProviderBase<MainExtenderType>
Assembly: SoDataBase.dll
Syntax
public abstract class LinksBySourceProviderBase<MainExtenderType> : TypedQueryProviderBase<ArchiveRow, MainExtenderType>, IArchiveProviderQueryMapping, IArchiveQueryProvider, IArchiveProviderExtensible, IArchiveTypedProvider<ArchiveRow>, IArchiveTypedProviderBase, IArchiveProvider, IArchiveProviderHasRows, IArchiveProviderHasColumns, IArchiveProviderHasEntities, IPlugin where MainExtenderType : IArchiveExtender, new()
Type Parameters
Name |
Description |
MainExtenderType |
Type of the main data extender to use
|
Constructors
LinksBySourceProviderBase(ArchiveRowTypeInfo)
Create the provider, set up c
ustom processing for the source restrictions (appointment, sale, document). Instantiate
the main extender, which is our type parameter. register the entity.
Declaration
protected LinksBySourceProviderBase(ArchiveRowTypeInfo entity)
Parameters
Fields
_colRelationId
Declaration
protected ArchiveColumnInfo _colRelationId
Field Value
Declaration
protected ArchiveColumnInfo _colRelcomment
Field Value
_colSourceAppointmentRestrictionId
Declaration
protected ArchiveColumnInfo _colSourceAppointmentRestrictionId
Field Value
Declaration
protected ArchiveColumnInfo _colSourceContactRestrictionId
Field Value
_colSourceDocumentRestrictionId
Declaration
protected ArchiveColumnInfo _colSourceDocumentRestrictionId
Field Value
_colSourcePersonRestrictionId
Declaration
protected ArchiveColumnInfo _colSourcePersonRestrictionId
Field Value
_colSourceProjectRestrictionId
Declaration
protected ArchiveColumnInfo _colSourceProjectRestrictionId
Field Value
_colSourceSaleRestrictionId
Declaration
protected ArchiveColumnInfo _colSourceSaleRestrictionId
Field Value
_colSourceSelectionRestrictionId
Declaration
protected ArchiveColumnInfo _colSourceSelectionRestrictionId
Field Value
_numDestinationRestrictions
Declaration
protected int _numDestinationRestrictions
Field Value
_relationsTable
Declaration
protected RelationsTableInfo _relationsTable
Field Value
LinkDescription
Declaration
public const string LinkDescription = "linkDescription"
Field Value
LinkId
Declaration
public const string LinkId = "linkId"
Field Value
Properties
PrimaryTable
Declaration
public override TableInfo PrimaryTable { get; }
Property Value
Overrides
SuperOffice.CRM.ArchiveLists.TypedQueryProviderBase<SuperOffice.CRM.ArchiveLists.ArchiveRow, MainExtenderType>.PrimaryTable
TableToExtend
Declaration
public override TableInfo TableToExtend { get; }
Property Value
Overrides
SuperOffice.CRM.ArchiveLists.QueryProviderBase<SuperOffice.CRM.ArchiveLists.ArchiveRow>.TableToExtend
Methods
InnerMapFields()
Declaration
public override void InnerMapFields()
Overrides
SuperOffice.CRM.ArchiveLists.QueryProviderBase<SuperOffice.CRM.ArchiveLists.ArchiveRow>.InnerMapFields()
InnerPopulateRowFromReader(SoDataReader, ArchiveRow)
Override: Set row navigation based on the entity name and row primary key
Declaration
protected override void InnerPopulateRowFromReader(SoDataReader reader, ArchiveRow row)
Parameters
Overrides
SuperOffice.CRM.ArchiveLists.TypedQueryProviderBase<SuperOffice.CRM.ArchiveLists.ArchiveRow, MainExtenderType>.InnerPopulateRowFromReader(SuperOffice.Data.SoDataReader, SuperOffice.CRM.ArchiveLists.ArchiveRow)
ProcessRestrictions()
Override: Process one (1) source restriction, via the base class and CustomBinding mechanism of the RestrictionHelper.
Declaration
protected override bool ProcessRestrictions()
Returns
Overrides
ProcessSourceRestriction(TableInfo, ArchiveRestrictionInfo, ArchiveSelect)
Declaration
protected abstract void ProcessSourceRestriction(TableInfo sourceTable, ArchiveRestrictionInfo restriction, ArchiveSelect targetQuery)
Parameters
Implements
Extension Methods
EnumUtil.MapEnums<From, To>(From)