Class FindProductViaConnectorProvider
Inheritance
FindProductViaConnectorProvider
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
ProviderName
Declaration
public const string ProviderName = "FindProductViaConnectorProvider"
Field Value
_colCode
Declaration
protected ArchiveColumnInfo _colCode
Field Value
_colCost
Declaration
protected ArchiveColumnInfo _colCost
Field Value
_colDescription
Declaration
protected ArchiveColumnInfo _colDescription
Field Value
_colERPProductKey
Declaration
protected ArchiveColumnInfo _colERPProductKey
Field Value
Declaration
protected ArchiveColumnInfo _colExtra1
Field Value
Declaration
protected ArchiveColumnInfo _colExtra2
Field Value
Declaration
protected ArchiveColumnInfo _colExtra3
Field Value
Declaration
protected ArchiveColumnInfo _colExtra4
Field Value
Declaration
protected ArchiveColumnInfo _colExtra5
Field Value
_colInAssortment
Declaration
protected ArchiveColumnInfo _colInAssortment
Field Value
_colInstock
Declaration
protected ArchiveColumnInfo _colInstock
Field Value
_colIsSubscription
Declaration
protected ArchiveColumnInfo _colIsSubscription
Field Value
_colItemNumber
Declaration
protected ArchiveColumnInfo _colItemNumber
Field Value
_colListPrice
Declaration
protected ArchiveColumnInfo _colListPrice
Field Value
_colMinimumsPrice
Declaration
protected ArchiveColumnInfo _colMinimumsPrice
Field Value
_colName
Declaration
protected ArchiveColumnInfo _colName
Field Value
_colPriceUnit
Declaration
protected ArchiveColumnInfo _colPriceUnit
Field Value
_colProductCategory
Declaration
protected ArchiveColumnInfo _colProductCategory
Field Value
_colProductFamily
Declaration
protected ArchiveColumnInfo _colProductFamily
Field Value
_colProductType
Declaration
protected ArchiveColumnInfo _colProductType
Field Value
_colQuantityUnit
Declaration
protected ArchiveColumnInfo _colQuantityUnit
Field Value
_colSubscriptionUnit
Declaration
protected ArchiveColumnInfo _colSubscriptionUnit
Field Value
_colThumbnail
Declaration
protected ArchiveColumnInfo _colThumbnail
Field Value
_colURL
Declaration
protected ArchiveColumnInfo _colURL
Field Value
_colVAT
Declaration
protected ArchiveColumnInfo _colVAT
Field Value
_colVATInfo
Declaration
protected ArchiveColumnInfo _colVATInfo
Field Value
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
Overrides
Remarks
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
Overrides
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
Overrides
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
Overrides
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
Returns
| Type |
Description |
| IAsyncEnumerable<ArchiveRow> |
result list, which may be paged, sorted and column-filtered, or not, according to the abstract properties
|
Overrides
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
Implements
Extension Methods