Class LinksProviderBase<BySourceLeftProvider, BySourceRightProvider, ByDestinationProvider>
Base class for link data providers - combines a by-source and a by-destination provider to offer both ways of addressing, though not at the same time. The by-source provider consists of a left- and a right-hand version, to handle links bidirectionally. The left and right subproviders must handle the same restrictions, i.e., behave symmetrically.
Inheritance
Implements
Inherited Members
Namespace: SuperOffice.CRM.ArchiveLists
Assembly: SoDataBase.dll
Syntax
public abstract class LinksProviderBase<BySourceLeftProvider, BySourceRightProvider, ByDestinationProvider> : MultiQueryProviderBase, IArchiveMultiQueryProvider, IArchiveProvider, IArchiveProviderHasRows, IArchiveProviderHasColumns, IArchiveProviderHasEntities where BySourceLeftProvider : IArchiveProvider, new() where BySourceRightProvider : IArchiveProvider, new() where ByDestinationProvider : IArchiveProvider, new()
Type Parameters
Name | Description |
---|---|
BySourceLeftProvider | Source provider type |
BySourceRightProvider | |
ByDestinationProvider | Destination provider type |
Remarks
This class handles instantiation, delivery of restrictions and sanity checking. Derived classes can basically just set up the template types and be done...
Constructors
LinksProviderBase()
Base class for link data providers - combines a by-source and a by-destination provider to offer both ways of addressing, though not at the same time. The by-source provider consists of a left- and a right-hand version, to handle links bidirectionally. The left and right subproviders must handle the same restrictions, i.e., behave symmetrically.
Declaration
public LinksProviderBase()
Remarks
This class handles instantiation, delivery of restrictions and sanity checking. Derived classes can basically just set up the template types and be done...
Methods
SetRestriction(ArchiveRestrictionInfo[])
Set the restriction for the provider. The restriction is simply propagated to all sub providers.
Declaration
public override bool SetRestriction(ArchiveRestrictionInfo[] restrictions)
Parameters
Type | Name | Description |
---|---|---|
ArchiveRestrictionInfo[] | restrictions | Array of restrictions |
Returns
Type | Description |
---|---|
bool |
Overrides
Remarks
This class handles instantiation, delivery of restrictions and sanity checking. Derived classes can basically just set up the template types and be done...