Class DynamicwebBulkInsertDestinationWriter
- Assembly
- Dynamicweb.DataIntegration.dll
Dynamicweb Bulk Insert destiation writer
public class DynamicwebBulkInsertDestinationWriter : BaseSqlWriter, IDestinationWriter, IDisposable
- Inheritance
-
DynamicwebBulkInsertDestinationWriter
- Implements
- Inherited Members
Constructors
DynamicwebBulkInsertDestinationWriter(Mapping, SqlCommand, bool, bool)
Initializes a new instance of the DynamicwebBulkInsertDestinationWriter class.
public DynamicwebBulkInsertDestinationWriter(Mapping mapping, SqlCommand mockSqlCommand, bool shopDeactivateMissingProducts, bool deleteMissing)
Parameters
mappingMappingMapping
mockSqlCommandSqlCommandMock SqlCommand
shopDeactivateMissingProductsboolDeactivate missing products
deleteMissingboolDelete rows from Dynamicweb not present in the import
DynamicwebBulkInsertDestinationWriter(Mapping, SqlConnection, bool, bool, ILogger?, AssortmentHandler?, bool)
Initializes a new instance of the DynamicwebBulkInsertDestinationWriter class.
public DynamicwebBulkInsertDestinationWriter(Mapping mapping, SqlConnection connection, bool shopDeactivateMissingProducts, bool deleteMissing, ILogger? logger, AssortmentHandler? assortmentHandler, bool discardDuplicates)
Parameters
mappingMappingMapping
connectionSqlConnectionConnection
shopDeactivateMissingProductsboolDeactivate missing products
deleteMissingboolDelete rows from Dynamicweb not present in the import
loggerILoggerLogger instance
assortmentHandlerAssortmentHandlerAssortmentHandler instance
discardDuplicatesbool
DynamicwebBulkInsertDestinationWriter(Mapping, SqlConnection, bool, bool, ILogger?, AssortmentHandler?, bool, bool)
Initializes a new instance of the DynamicwebBulkInsertDestinationWriter class.
public DynamicwebBulkInsertDestinationWriter(Mapping mapping, SqlConnection connection, bool shopDeactivateMissingProducts, bool deleteMissing, ILogger? logger, AssortmentHandler? assortmentHandler, bool discardDuplicates, bool removeMissingAfterImportDestinationTablesOnly)
Parameters
mappingMappingMapping
connectionSqlConnectionConnection
shopDeactivateMissingProductsboolDeactivate missing products
deleteMissingboolDelete rows from Dynamicweb not present in the import
loggerILoggerLogger instance
assortmentHandlerAssortmentHandlerAssortmentHandler instance
discardDuplicatesboolremoveMissingAfterImportDestinationTablesOnlyboolRemove missing rows after import in the destination tables only
DynamicwebBulkInsertDestinationWriter(Mapping, SqlConnection, bool, bool, ILogger?, AssortmentHandler?, bool, bool, bool)
Initializes a new instance of the DynamicwebBulkInsertDestinationWriter class.
public DynamicwebBulkInsertDestinationWriter(Mapping mapping, SqlConnection connection, bool shopDeactivateMissingProducts, bool deleteMissing, ILogger? logger, AssortmentHandler? assortmentHandler, bool discardDuplicates, bool removeMissingAfterImportDestinationTablesOnly, bool skipFailingRows)
Parameters
mappingMappingMapping
connectionSqlConnectionConnection
shopDeactivateMissingProductsboolDeactivate missing products
deleteMissingboolDelete rows from Dynamicweb not present in the import
loggerILoggerLogger instance
assortmentHandlerAssortmentHandlerAssortment Handler
discardDuplicatesboolDiscard Duplicates
removeMissingAfterImportDestinationTablesOnlyboolRemove missing rows after import in the destination tables only
skipFailingRowsboolSkip failing rows
Properties
DataToWrite
protected DataSet DataToWrite { get; set; }
Property Value
DuplicateRowsHandler
protected DuplicateRowsHandler? DuplicateRowsHandler { get; set; }
Property Value
Logger
protected ILogger? Logger { get; set; }
Property Value
Mapping
Gets the mapping.
public Mapping Mapping { get; }
Property Value
SqlBulkCopier
protected SqlBulkCopy SqlBulkCopier { get; set; }
Property Value
TableToWrite
protected DataTable TableToWrite { get; set; }
Property Value
Methods
Close()
Close writer
public void Close()
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Dispose(bool)
protected virtual void Dispose(bool disposing)
Parameters
disposingbool
Write(Dictionary<string, object>)
Writes the specified row.
public void Write(Dictionary<string, object> row)
Parameters
rowDictionary<string, object>The row to be written.