Table of Contents

Class DynamicwebBulkInsertDestinationWriter

Namespace
Dynamicweb.DataIntegration.Providers.DynamicwebProvider
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

mapping Mapping

Mapping

mockSqlCommand SqlCommand

Mock SqlCommand

shopDeactivateMissingProducts bool

Deactivate missing products

deleteMissing bool

Delete 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

mapping Mapping

Mapping

connection SqlConnection

Connection

shopDeactivateMissingProducts bool

Deactivate missing products

deleteMissing bool

Delete rows from Dynamicweb not present in the import

logger ILogger

Logger instance

assortmentHandler AssortmentHandler

AssortmentHandler instance

discardDuplicates bool

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

mapping Mapping

Mapping

connection SqlConnection

Connection

shopDeactivateMissingProducts bool

Deactivate missing products

deleteMissing bool

Delete rows from Dynamicweb not present in the import

logger ILogger

Logger instance

assortmentHandler AssortmentHandler

AssortmentHandler instance

discardDuplicates bool
removeMissingAfterImportDestinationTablesOnly bool

Remove 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

mapping Mapping

Mapping

connection SqlConnection

Connection

shopDeactivateMissingProducts bool

Deactivate missing products

deleteMissing bool

Delete rows from Dynamicweb not present in the import

logger ILogger

Logger instance

assortmentHandler AssortmentHandler

Assortment Handler

discardDuplicates bool

Discard Duplicates

removeMissingAfterImportDestinationTablesOnly bool

Remove missing rows after import in the destination tables only

skipFailingRows bool

Skip failing rows

Properties

DataToWrite

protected DataSet DataToWrite { get; set; }

Property Value

DataSet

DuplicateRowsHandler

protected DuplicateRowsHandler? DuplicateRowsHandler { get; set; }

Property Value

DuplicateRowsHandler

Logger

protected ILogger? Logger { get; set; }

Property Value

ILogger

Mapping

Gets the mapping.

public Mapping Mapping { get; }

Property Value

Mapping

SqlBulkCopier

protected SqlBulkCopy SqlBulkCopier { get; set; }

Property Value

SqlBulkCopy

TableToWrite

protected DataTable TableToWrite { get; set; }

Property Value

DataTable

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

disposing bool

Write(Dictionary<string, object>)

Writes the specified row.

public void Write(Dictionary<string, object> row)

Parameters

row Dictionary<string, object>

The row to be written.

To top