Show / Hide Table of Contents

Class FindProductViaConnectorProvider

Inheritance
object
InMemoryProviderBase<ArchiveRow>
FindProductViaConnectorProvider
Implements
IArchiveProvider
IArchiveProviderHasRows
IArchiveProviderHasColumns
IArchiveProviderHasEntities
Inherited Members
InMemoryProviderBase<ArchiveRow>._entityHelper
InMemoryProviderBase<ArchiveRow>.Visible
InMemoryProviderBase<ArchiveRow>.Invisible
InMemoryProviderBase<ArchiveRow>.AllowOrderBy
InMemoryProviderBase<ArchiveRow>.DenyOrderBy
InMemoryProviderBase<ArchiveRow>.Options
InMemoryProviderBase<ArchiveRow>.RegisterEntity(ArchiveRowTypeInfo)
InMemoryProviderBase<ArchiveRow>.GetReaderAsync(string, CancellationToken)
InMemoryProviderBase<ArchiveRow>.GetRowsAsync(string, CancellationToken)
InMemoryProviderBase<ArchiveRow>.GetResultInformationAsync()
InMemoryProviderBase<ArchiveRow>.SortData(List<ArchiveRow>)
InMemoryProviderBase<ArchiveRow>.Close()
InMemoryProviderBase<ArchiveRow>.SetPagingInfo(int, int)
InMemoryProviderBase<ArchiveRow>.GetAvailableColumns()
InMemoryProviderBase<ArchiveRow>.SetDesiredColumns(params string[])
InMemoryProviderBase<ArchiveRow>.SetOrderBy(params ArchiveOrderByInfo[])
InMemoryProviderBase<ArchiveRow>.GetAvailableEntities()
InMemoryProviderBase<ArchiveRow>.SetDesiredEntities(params string[])
InMemoryProviderBase<ArchiveRow>.EntityHelper
InMemoryProviderBase<ArchiveRow>.ColumnHelper
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOffice.CRM.ArchiveLists
Assembly: SoDataBase.BusinessLogic.dll
Syntax
[ArchiveProvider("FindProductViaConnectorProvider", 1073741823)]
public class FindProductViaConnectorProvider : InMemoryProviderBase<ArchiveRow>, IArchiveProvider, IArchiveProviderHasRows, IArchiveProviderHasColumns, IArchiveProviderHasEntities

Constructors

FindProductViaConnectorProvider(string)

Declaration
public FindProductViaConnectorProvider(string connectionIdContext)
Parameters
Type Name Description
string connectionIdContext

Fields

EntityName

Declaration
public const string EntityName = "ErpProduct"
Field Value
Type Description
string

ProviderName

Declaration
public const string ProviderName = "FindProductViaConnectorProvider"
Field Value
Type Description
string

_colCode

Declaration
protected ArchiveColumnInfo _colCode
Field Value
Type Description
ArchiveColumnInfo

_colCost

Declaration
protected ArchiveColumnInfo _colCost
Field Value
Type Description
ArchiveColumnInfo

_colDescription

Declaration
protected ArchiveColumnInfo _colDescription
Field Value
Type Description
ArchiveColumnInfo

_colERPProductKey

Declaration
protected ArchiveColumnInfo _colERPProductKey
Field Value
Type Description
ArchiveColumnInfo

_colExtra1

Declaration
protected ArchiveColumnInfo _colExtra1
Field Value
Type Description
ArchiveColumnInfo

_colExtra2

Declaration
protected ArchiveColumnInfo _colExtra2
Field Value
Type Description
ArchiveColumnInfo

_colExtra3

Declaration
protected ArchiveColumnInfo _colExtra3
Field Value
Type Description
ArchiveColumnInfo

_colExtra4

Declaration
protected ArchiveColumnInfo _colExtra4
Field Value
Type Description
ArchiveColumnInfo

_colExtra5

Declaration
protected ArchiveColumnInfo _colExtra5
Field Value
Type Description
ArchiveColumnInfo

_colInAssortment

Declaration
protected ArchiveColumnInfo _colInAssortment
Field Value
Type Description
ArchiveColumnInfo

_colInstock

Declaration
protected ArchiveColumnInfo _colInstock
Field Value
Type Description
ArchiveColumnInfo

_colIsSubscription

Declaration
protected ArchiveColumnInfo _colIsSubscription
Field Value
Type Description
ArchiveColumnInfo

_colItemNumber

Declaration
protected ArchiveColumnInfo _colItemNumber
Field Value
Type Description
ArchiveColumnInfo

_colListPrice

Declaration
protected ArchiveColumnInfo _colListPrice
Field Value
Type Description
ArchiveColumnInfo

_colMinimumsPrice

Declaration
protected ArchiveColumnInfo _colMinimumsPrice
Field Value
Type Description
ArchiveColumnInfo

_colName

Declaration
protected ArchiveColumnInfo _colName
Field Value
Type Description
ArchiveColumnInfo

_colPriceUnit

Declaration
protected ArchiveColumnInfo _colPriceUnit
Field Value
Type Description
ArchiveColumnInfo

_colProductCategory

Declaration
protected ArchiveColumnInfo _colProductCategory
Field Value
Type Description
ArchiveColumnInfo

_colProductFamily

Declaration
protected ArchiveColumnInfo _colProductFamily
Field Value
Type Description
ArchiveColumnInfo

_colProductType

Declaration
protected ArchiveColumnInfo _colProductType
Field Value
Type Description
ArchiveColumnInfo

_colQuantityUnit

Declaration
protected ArchiveColumnInfo _colQuantityUnit
Field Value
Type Description
ArchiveColumnInfo

_colSubscriptionUnit

Declaration
protected ArchiveColumnInfo _colSubscriptionUnit
Field Value
Type Description
ArchiveColumnInfo

_colThumbnail

Declaration
protected ArchiveColumnInfo _colThumbnail
Field Value
Type Description
ArchiveColumnInfo

_colURL

Declaration
protected ArchiveColumnInfo _colURL
Field Value
Type Description
ArchiveColumnInfo

_colVAT

Declaration
protected ArchiveColumnInfo _colVAT
Field Value
Type Description
ArchiveColumnInfo

_colVATInfo

Declaration
protected ArchiveColumnInfo _colVATInfo
Field Value
Type Description
ArchiveColumnInfo

Properties

BaseClassShouldFilterColumns

Subclass contract: Return true if the base class should filter columns according to SetDesiredColumns. If this property is false, the actual ArchiveRow objects are returned; otherwise a typed copy is made and ColumnData are populated accoprding to DesiredColumns.

Declaration
protected override bool BaseClassShouldFilterColumns { get; }
Property Value
Type Description
bool
Overrides
InMemoryProviderBase<ArchiveRow>.BaseClassShouldFilterColumns
Remarks

If columns are cheap to get, the subclass can save code by leaving the filtering to this base class. Conversely, if somecolumns are expensive to calculate, the subclass should do the filtering itself to improve performance.

BaseClassShouldFilterEntities

Subclass contract: Return true if the base class should filter columns according to SetDesiredColumns. If this property is false, the actual ArchiveRow objects are returned; otherwise a typed copy is made and ColumnData are populated accoprding to DesiredColumns.

Declaration
protected override bool BaseClassShouldFilterEntities { get; }
Property Value
Type Description
bool
Overrides
InMemoryProviderBase<ArchiveRow>.BaseClassShouldFilterEntities
Remarks

If columns are cheap to get, the subclass can save code by leaving the filtering to this base class. Conversely, if somecolumns are expensive to calculate, the subclass should do the filtering itself to improve performance.

BaseClassShouldPage

Subclass contract: Return true if the base class should perform filter entities according to SetDesiredEntities. If this property is false, the result set is assumed to represent the chosen entities only.

Declaration
protected override bool BaseClassShouldPage { get; }
Property Value
Type Description
bool
Overrides
InMemoryProviderBase<ArchiveRow>.BaseClassShouldPage
Remarks

If rows are cheap to get, the subclass can save code by leaving the filtering to this base class. Conversely, if rows are expensive to calculate, the subclass should do the entity filtering itself to improve performance.

BaseClassShouldSort

Subclass contract: Return true if the base class should perform sorting according to SetOrderBy. If this property is false, the result set is assumed to be correctly ordered.

Declaration
protected override bool BaseClassShouldSort { get; }
Property Value
Type Description
bool
Overrides
InMemoryProviderBase<ArchiveRow>.BaseClassShouldSort

Methods

GetResultDataAsync(CancellationToken)

Subclass contract: Return a list of ArchiveRow items that are the current result

Declaration
protected override IAsyncEnumerable<ArchiveRow> GetResultDataAsync(CancellationToken cancellationToken = default)
Parameters
Type Name Description
CancellationToken cancellationToken
Returns
Type Description
IAsyncEnumerable<ArchiveRow>

result list, which may be paged, sorted and column-filtered, or not, according to the abstract properties

Overrides
InMemoryProviderBase<ArchiveRow>.GetResultDataAsync(CancellationToken)

SetRestriction(params ArchiveRestrictionInfo[])

Set query restriction globally, supersedes previous restrictions

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

Array of restrictions, with an implicit AND between them

Returns
Type Description
bool

true if at least one of the restrictions matched one of the available columns of the provider

Overrides
InMemoryProviderBase<ArchiveRow>.SetRestriction(params ArchiveRestrictionInfo[])

Implements

IArchiveProvider
IArchiveProviderHasRows
IArchiveProviderHasColumns
IArchiveProviderHasEntities

Extension Methods

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