Interface IDestinationWriter
- Namespace
- Dynamicweb.DataIntegration.Integration.Interfaces
- Assembly
- Dynamicweb.DataIntegration.dll
The contract for writing rows to the destination of a data integration job. A destination provider creates a writer per table mapping inside its RunJob(Job) implementation, passes every processed source row to Write(Dictionary<string, object>), and calls Close() when the table has been written.
public interface IDestinationWriter
Remarks
Rows arrive keyed by source column name; the writer uses the column mappings of Mapping to resolve destination columns and convert values (see ConvertInputValueToOutputValue(object)). Writers that buffer or batch (for example bulk-insert into a temporary table) should flush in Close(). See BaseSqlWriter for the SQL implementation base, and note that BaseDestinationWriter is a legacy placeholder — implement this interface directly instead.
Properties
Mapping
Gets the table mapping the writer writes rows for.
Mapping Mapping { get; }
Property Value
Methods
Close()
Closes the writer after the last row has been written, flushing any buffered data and releasing resources.
void Close()
Write(Dictionary<string, object>)
Writes a row to the destination. Called once per processed source row.
void Write(Dictionary<string, object> row)
Parameters
rowDictionary<string, object>The row to be written, keyed by source column name.