Class MultiQueryProviderBaseWithRestrictionGroups
Base for providers with OR-able restriction groups.
Inheritance
MultiQueryProviderBaseWithRestrictionGroups
Assembly: SoDataBase.dll
Syntax
public abstract class MultiQueryProviderBaseWithRestrictionGroups : MultiQueryProviderBase, IArchiveMultiQueryProvider, IArchiveProvider, IArchiveProviderHasRows, IArchiveProviderHasColumns, IArchiveProviderHasEntities
Constructors
MultiQueryProviderBaseWithRestrictionGroups()
Base for providers with OR-able restriction groups.
Declaration
public MultiQueryProviderBaseWithRestrictionGroups()
Properties
RestrictionStorageKey
Base for providers with OR-able restriction groups.
Declaration
protected abstract string RestrictionStorageKey { get; }
Property Value
StorageKeyRestrictionName
Base for providers with OR-able restriction groups.
Declaration
protected abstract string StorageKeyRestrictionName { get; }
Property Value
SubProviderName
Base for providers with OR-able restriction groups.
Declaration
protected abstract string SubProviderName { get; }
Property Value
Methods
GetFirstProvider()
Base for providers with OR-able restriction groups.
Declaration
protected IArchiveProvider GetFirstProvider()
Returns
GetRows(string)
Get the result enumerator. Accessing this enumerator will cause all sub query providers to be initialized
in parallell (subject to global thread limits), rows will be skipped according to the current page settings,
and results will come in the order specified by the current order by settings. Restrictions, desired columns, entities
etc must be set before accessing this property.
Declaration
public override IEnumerable<ArchiveRow> GetRows(string options)
Parameters
Type |
Name |
Description |
string |
options |
|
Returns
Overrides
ModifyRestrictionGroup(IArchiveProvider, ArchiveRestrictionInfo[])
Base for providers with OR-able restriction groups.
Declaration
protected virtual ArchiveRestrictionInfo[] ModifyRestrictionGroup(IArchiveProvider provider, ArchiveRestrictionInfo[] resGroup)
Parameters
Returns
SetDesiredColumns(params string[])
Store the desired columns, so they don't get lost until SetRestrictions tells us what to do
Declaration
public override void SetDesiredColumns(params string[] columnIds)
Parameters
Type |
Name |
Description |
string[] |
columnIds |
|
Overrides
SetDesiredEntities(params string[])
Store the desired entities, so they don't get lost until SetRestrictions tells us what to do
Declaration
public override void SetDesiredEntities(params string[] entities)
Parameters
Type |
Name |
Description |
string[] |
entities |
|
Overrides
SetOrderBy(ArchiveOrderByInfo[])
Store the orderby, so they don't get lost until SetRestrictions tells us what to do
Declaration
public override void SetOrderBy(ArchiveOrderByInfo[] orderBy)
Parameters
Overrides
SetRestriction(ArchiveRestrictionInfo[])
Mandatory restriction selectionId is used to retrieve the actual restrictions, instantiate providers and set up the whole system
Declaration
public override bool SetRestriction(ArchiveRestrictionInfo[] restrictions)
Parameters
Returns
Overrides
Implements
Extension Methods