Show / Hide Table of Contents

Class CombinedSelectionProviderBase

Implements the base functionality for selections of type Combined

Inheritance
Object
CombinedSelectionProviderBase
AppointmentSelectionCombinedProvider
AppointmentSelectionCombinedProviderV2
AppointmentShadowSelectionCombinedProvider
AppointmentShadowSelectionCombinedProviderV2
ContactPersonSelectionCombinedProviderV2
DocumentSelectionCombinedProvider
DocumentSelectionCombinedProviderV2
DocumentShadowSelectionCombinedProvider
DocumentShadowSelectionCombinedProviderV2
ProjectSelectionCombinedProvider
ProjectSelectionCombinedProviderV2
ProjectShadowSelectionCombinedProvider
ProjectShadowSelectionCombinedProviderV2
QuoteLineSelectionCombinedProvider
QuoteLineSelectionCombinedProviderV2
QuoteLineShadowSelectionCombinedProvider
QuoteLineShadowSelectionCombinedProviderV2
SaleSelectionCombinedProvider
SaleSelectionCombinedProviderV2
SaleShadowSelectionCombinedProvider
SaleShadowSelectionCombinedProviderV2
SelectionSelectionCombinedProviderV2
TicketSelectionCombinedProvider
TicketSelectionCombinedProviderV2
TicketShadowSelectionCombinedProvider
TicketShadowSelectionCombinedProviderV2
SelectionCombinedProvider
Implements
IArchiveProvider
IArchiveProviderHasRows
IArchiveProviderHasColumns
IArchiveProviderHasEntities
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: SuperOffice.CRM.ArchiveLists.Archive
Assembly: SoDataBase.dll
Syntax
public abstract class CombinedSelectionProviderBase : IArchiveProvider, IArchiveProviderHasRows, IArchiveProviderHasColumns, IArchiveProviderHasEntities, IPlugin

Constructors

CombinedSelectionProviderBase(Boolean, String)

Constructor for the combined selection provider

Declaration
public CombinedSelectionProviderBase(bool isShadow, string providerName)
Parameters
Type Name Description
Boolean isShadow

True/false to override if we should use the shadow sub-providers or not.

String providerName

Fields

_combineType

Type of combination operation

Declaration
protected int _combineType
Field Value
Type Description
Int32

_entityType

Type of entity

Declaration
protected string _entityType
Field Value
Type Description
String

_isCompanyUnique

True/False depending on wether or not the companyUnique flag is set

Declaration
protected bool _isCompanyUnique
Field Value
Type Description
Boolean

_isShadow

True/False depending on wether or not we're to use shadow sub-providers or not.

Declaration
protected bool _isShadow
Field Value
Type Description
Boolean

_leftId

Identifier of the left sub-provider

Declaration
protected int _leftId
Field Value
Type Description
Int32

_leftProvider

Sub-provider on the left hand side of the combine operation

Declaration
protected IArchiveProvider _leftProvider
Field Value
Type Description
IArchiveProvider

_rightId

Identifier of the right sub-provider

Declaration
protected int _rightId
Field Value
Type Description
Int32

_rightProvider

Sub-provider on the right-hand side of the combination operation

Declaration
protected IArchiveProvider _rightProvider
Field Value
Type Description
IArchiveProvider

ColCombineType

Declaration
public const string ColCombineType = "combineType"
Field Value
Type Description
String

ColCompanyUnique

Declaration
public const string ColCompanyUnique = "companyUnique"
Field Value
Type Description
String

ColIsShadow

Declaration
public const string ColIsShadow = "isShadow"
Field Value
Type Description
String

ColLeftId

Declaration
public const string ColLeftId = "leftId"
Field Value
Type Description
String

ColRightId

Declaration
public const string ColRightId = "rightId"
Field Value
Type Description
String

ColSelectionId

Declaration
public const string ColSelectionId = "selectionId"
Field Value
Type Description
String

ColTargetTableNumber

Declaration
public const string ColTargetTableNumber = "targetTableNumber"
Field Value
Type Description
String

Properties

Combinator

Returns the Combinator for this selection

Declaration
protected Combinator Combinator { get; }
Property Value
Type Description
Combinator

EntityType

returns the entitytype for this provider

Declaration
public string EntityType { get; }
Property Value
Type Description
String

IsCompanyUnique

returns true if the companyUnique flag is set on the combined selection

Declaration
public bool IsCompanyUnique { get; }
Property Value
Type Description
Boolean

IsShadow

returns true if the provider is a shadow provider

Declaration
public bool IsShadow { get; }
Property Value
Type Description
Boolean

LeftProvider

Returns the left archive provider

Declaration
protected IArchiveProvider LeftProvider { get; }
Property Value
Type Description
IArchiveProvider

RightProvider

Returns the right provider

Declaration
protected IArchiveProvider RightProvider { get; }
Property Value
Type Description
IArchiveProvider

Methods

Close()

Closes the provider and the sub-providers

Declaration
public void Close()

GetAvailableColumns()

Returns a list of the available columns.

Declaration
public List<ArchiveColumnInfo> GetAvailableColumns()
Returns
Type Description
List<ArchiveColumnInfo>

GetAvailableEntities()

Returns the available entities (in the left sub-provider)

Declaration
public virtual List<ArchiveRowTypeInfo> GetAvailableEntities()
Returns
Type Description
List<ArchiveRowTypeInfo>

GetReader(String)

Start the provider, returning an IDataReader compatible object to the client for row enumeration and data access

Declaration
public virtual IDataReader GetReader(string options)
Parameters
Type Name Description
String options

Options, passed to the internal GetRows method

Returns
Type Description
IDataReader

IDataReader primed to provide results

GetResultInformation()

Delegate the call to the combinator

Declaration
public ArchiveResultInformation GetResultInformation()
Returns
Type Description
ArchiveResultInformation

GetRows(String)

Returns the enumeration of archiverows from the provider.

Declaration
public IEnumerable<ArchiveRow> GetRows(string options)
Parameters
Type Name Description
String options
Returns
Type Description
IEnumerable<ArchiveRow>

SetDesiredColumns(String[])

Sets the desired columns

Declaration
public void SetDesiredColumns(params string[] columnIds)
Parameters
Type Name Description
String[] columnIds

array of columns to set

SetDesiredEntities(String[])

Sets the desired entities in the left/right sub-provider

Declaration
public virtual void SetDesiredEntities(params string[] entities)
Parameters
Type Name Description
String[] entities

SetOrderBy(ArchiveOrderByInfo[])

Set sort order in sub-providers and in the combinator.

Declaration
public void SetOrderBy(params ArchiveOrderByInfo[] orderBy)
Parameters
Type Name Description
ArchiveOrderByInfo[] orderBy

SetPagingInfo(Int32, Int32)

Set paging information.

Declaration
public void SetPagingInfo(int pageSize, int pageNumber)
Parameters
Type Name Description
Int32 pageSize
Int32 pageNumber

SetRestriction(ArchiveRestrictionInfo[])

Sets the restrictions for the provider.

Declaration
public bool SetRestriction(params ArchiveRestrictionInfo[] restrictions)
Parameters
Type Name Description
ArchiveRestrictionInfo[] restrictions
Returns
Type Description
Boolean

Implements

IArchiveProvider
IArchiveProviderHasRows
IArchiveProviderHasColumns
IArchiveProviderHasEntities

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top