Class CsvSource<TOutput>

Reads data from a csv source. While reading the data from the file, data is also asnychronously posted into the targets. Data is read a as string from the source and dynamically converted into the corresponding data format.

Inheritance
System.Object
CsvSource<TOutput>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ETLBox.DataFlow.Connectors
Assembly: ETLBox.Csv.dll
Syntax
    public class CsvSource<TOutput> : DataFlowStreamSource<TOutput>, ILoggableTask, IDataFlowLogging, IDataFlowStreamSource<TOutput>, IDataFlowExecutableSource<TOutput>, IDataFlowSource<TOutput>, IDataFlowSource, IDataFlowComponent, IDataFlowExecutableSource, IDataFlowStreamSource
Type Parameters
NameDescription
TOutput

Type of outgoing data

Examples
CsvSource<CSVData> source = new CsvSource<CSVData>("Demo.csv");
source.Configuration.Delimiter = ";";

Constructors

CsvSource()

Declaration
    public CsvSource()

CsvSource(String)

Declaration
    public CsvSource(string uri)
Parameters
TypeNameDescription
System.Stringuri

The source csv file name or uri

Properties

Configuration

The CsvHelper Configuration. E.g. you can change the delimiter or the escape character here.

Declaration
    public CsvConfiguration Configuration { get; set; }
Property Value
TypeDescription
CsvHelper.Configuration.CsvConfiguration

FieldHeaders

The parsed header names from the csv

Declaration
    public string[] FieldHeaders { get; }
Property Value
TypeDescription
System.String[]

IsHeaderRead

True if the header was already set

Declaration
    public bool IsHeaderRead { get; }
Property Value
TypeDescription
System.Boolean

TaskName

A name to identify the task or component. Every component or task comes with a default name that can be overwritten.

Declaration
    public override string TaskName { get; set; }
Property Value
TypeDescription
System.String
Overrides

Methods

CheckParameter()

Declaration
    protected override void CheckParameter()
Overrides
ETLBox.DataFlow.DataFlowStreamSource<TOutput>.CheckParameter()

CloseReader()

Declaration
    protected override void CloseReader()
Overrides
ETLBox.DataFlow.DataFlowStreamSource<TOutput>.CloseReader()

InitReader()

Declaration
    protected override void InitReader()
Overrides
ETLBox.DataFlow.DataFlowStreamSource<TOutput>.InitReader()

ReadAllRecords()

Declaration
    protected override void ReadAllRecords()
Overrides
ETLBox.DataFlow.DataFlowStreamSource<TOutput>.ReadAllRecords()

Implements