Show / Hide Table of Contents

Class ProductDuplicateHelper

Class that encapsulates the duplicate check in the import routine

Inheritance
Object
ProductDuplicateHelper
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: SuperOffice.CRM.Import
Assembly: SoDataBase.dll
Syntax
public class ProductDuplicateHelper

Constructors

ProductDuplicateHelper(Dictionary<String, Int32>, ImportProductDuplicateMatch, Boolean)

Constructor

Declaration
public ProductDuplicateHelper(Dictionary<string, int> columnsDictionary, ImportProductDuplicateMatch dupProductMatch, bool addAllProducts)
Parameters
Type Name Description
Dictionary<String, Int32> columnsDictionary

Columns setup

ImportProductDuplicateMatch dupProductMatch

Duplicate type for product matches

Boolean addAllProducts

Add all products?

Methods

GetDuplicates(ImportItem[], Dictionary<String, Boolean>, Dictionary<String, Dictionary<String, Object>>, Boolean, Int32, Dictionary<Int32, String>, Dictionary<Int32, Int32>)

Prepare the duplicate information

Declaration
public void GetDuplicates(ImportItem[] importRows, Dictionary<string, bool> productInserted, Dictionary<string, Dictionary<string, object>> productLookup, bool saveForReal, int pricelistId, Dictionary<int, string> productIdLookup, Dictionary<int, int> blobIdDictionary)
Parameters
Type Name Description
ImportItem[] importRows
Dictionary<String, Boolean> productInserted
Dictionary<String, Dictionary<String, Object>> productLookup
Boolean saveForReal
Int32 pricelistId
Dictionary<Int32, String> productIdLookup
Dictionary<Int32, Int32> blobIdDictionary

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