Class SelectionProvider
Implements
Inherited Members
Namespace: SuperOffice.CRM.ArchiveLists
Assembly: SoDataBase.BusinessLogic.dll
Syntax
[ArchiveProvider("ContactSelection", 1073741823)]
public class SelectionProvider : SelectionProviderBase, IArchiveMultiQueryProvider, IArchiveProvider, IArchiveProviderHasRows, IArchiveProviderHasColumns, IArchiveProviderHasEntities
Constructors
SelectionProvider()
Declaration
public SelectionProvider()
Fields
ColumnSelectionMemberId
Declaration
public const string ColumnSelectionMemberId = "selectionMemberId"
Field Value
| Type | Description |
|---|---|
| string |
ProviderName
Declaration
public const string ProviderName = "ContactSelection"
Field Value
| Type | Description |
|---|---|
| string |
Methods
GetContactSelectionMembersRowsAsync(int, string[], bool, CancellationToken)
Retrieve all selection members for a given selection
Declaration
public static IAsyncEnumerable<ArchiveRow> GetContactSelectionMembersRowsAsync(int selectionId, string[] returnColumns, bool includeStopped, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | selectionId | Identity of selection to get members from |
| string[] | returnColumns | Name of columns to return |
| bool | includeStopped | Include contacts marked with stop |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| IAsyncEnumerable<ArchiveRow> | All selection members for given selection |
SetRestriction(ArchiveRestrictionInfo[])
Override: Handle aspects of restrictions that are common to static and dynamic selections, and prepare the restriction set slightly. More special handling occurs in SelectionContactPersonExtender and SelectionDynamicContactExtender, where the default + special handling of stop, retired and noDM is done.
Declaration
public override bool SetRestriction(ArchiveRestrictionInfo[] restrictions)
Parameters
| Type | Name | Description |
|---|---|---|
| ArchiveRestrictionInfo[] | restrictions |
Returns
| Type | Description |
|---|---|
| bool |