Table of Contents

Interface ISourceReader

Namespace
Dynamicweb.DataIntegration.Integration.Interfaces
Assembly
Dynamicweb.DataIntegration.dll

The contract for reading rows from the source of a data integration job. A source provider returns a reader per table mapping from GetReader(Mapping), and the destination side drains it row by row while the job runs.

public interface ISourceReader : IDisposable
Inherited Members

Remarks

The consumption pattern is: while IsDone() returns false, call GetNext() for the next row; the reader is disposed when the table has been read. IsDone() is checked before every GetNext() call, so a reader typically reads one row ahead: fetch the first row on construction, report IsDone() based on whether a row is buffered, and advance in GetNext().

Rows are dictionaries keyed by source column name, holding the raw source values — column mapping, script types and type conversion are applied later by the destination side.

Methods

GetNext()

Gets the next source row. Only called while IsDone() returns false.

Dictionary<string, object> GetNext()

Returns

Dictionary<string, object>

The next row of the source table, keyed by source column name.

IsDone()

Determines whether this instance is done reading from the source.

bool IsDone()

Returns

bool

true if this instance is done and GetNext() must not be called again; otherwise, false.

To top