Class SelectionProviderBaseV2
Implements the base common functionality for the different selection providers. This base class
implements support for static, dynamic and combined selections.
Inheritance
SelectionProviderBaseV2
Assembly: SoDataBase.dll
Syntax
public abstract class SelectionProviderBaseV2 : MultiQueryProviderBase, IArchiveMultiQueryProvider, IArchiveProvider, IArchiveProviderHasRows, IArchiveProviderHasColumns, IArchiveProviderHasEntities
Constructors
SelectionProviderBaseV2(string, string, string, bool)
Implements the base common functionality for the different selection providers. This base class
implements support for static, dynamic and combined selections.
Declaration
public SelectionProviderBaseV2(string staticProvidername, string dynamicProviderName, string combinedProviderName, bool isShadow)
Parameters
Type |
Name |
Description |
string |
staticProvidername |
|
string |
dynamicProviderName |
|
string |
combinedProviderName |
|
bool |
isShadow |
|
Fields
ColumnSelectionId
Implements the base common functionality for the different selection providers. This base class
implements support for static, dynamic and combined selections.
Declaration
public const string ColumnSelectionId = "selectionId"
Field Value
_combinedProvider
Implements the base common functionality for the different selection providers. This base class
implements support for static, dynamic and combined selections.
Declaration
protected IArchiveProvider _combinedProvider
Field Value
_dynamicProvider
Implements the base common functionality for the different selection providers. This base class
implements support for static, dynamic and combined selections.
Declaration
protected IArchiveProvider _dynamicProvider
Field Value
_staticProvider
Implements the base common functionality for the different selection providers. This base class
implements support for static, dynamic and combined selections.
Declaration
protected IArchiveProvider _staticProvider
Field Value
Methods
GetRows(string)
Return rows as fetched by the base class, but count them. Update the selection member count
if the selection id is known and we have read the last row of the selection
Declaration
public override IEnumerable<ArchiveRow> GetRows(string options)
Parameters
Type |
Name |
Description |
string |
options |
|
Returns
Overrides
SetRestriction(ArchiveRestrictionInfo[])
Declaration
public override bool SetRestriction(ArchiveRestrictionInfo[] restrictions)
Parameters
Returns
Overrides
SetSelectionRestricion(ArchiveRestrictionInfo[], SelectionRow)
Method that sets the specific selection restrictions. This method exists so that subclasses can override it and
use the selection row without having to retrieve it again.
Declaration
protected virtual ArchiveRestrictionInfo[] SetSelectionRestricion(ArchiveRestrictionInfo[] restrictions, SelectionRow selection)
Parameters
Returns
Combined selections are interested in the left/right/combination specification. This method creates those restrictions, based on a SelectionRow
Declaration
public static ArchiveRestrictionInfo[] TransformCombinedSelectionRestrictions(ArchiveRestrictionInfo[] restrictions, SelectionRow selection, bool isShadowSelection)
Parameters
Returns
Implements
Extension Methods