Class CsvDestination<TInput>
A Csv destination defines a csv file where data from the flow is inserted.
Inherited Members
Namespace: ETLBox.Csv
Assembly: ETLBox.Csv.dll
Syntax
public class CsvDestination<TInput> : DataFlowStreamDestination<TInput>, IDataFlowLogging, IDataFlowStreamDestination<TInput>, IDataFlowDestination<TInput>, IDataFlowStreamDestination, IDataFlowDestination, IDataFlowComponent, ILoggableTask
Type Parameters
Name | Description |
---|---|
TInput | Type of ingoing data |
Examples
CsvDestination<MyRow> dest = new CsvDestination<MyRow>("/path/to/file.csv");
dest.Wait(); //Wait for all data to arrive
Constructors
CsvDestination()
Declaration
public CsvDestination()
CsvDestination(string)
Declaration
public CsvDestination(string uri)
Parameters
Type | Name | Description |
---|---|---|
string | uri | The destination csv file name or uri |
CsvDestination(string, ResourceType)
Declaration
public CsvDestination(string uri, ResourceType resourceType)
Parameters
Type | Name | Description |
---|---|---|
string | uri | The destination csv file name or uri |
ResourceType | resourceType | Specifies if data is loaded from a file, a web endpoint or other storage types (e.g. Azure Blob Storage) |
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
Type | Description |
---|---|
CsvConfiguration |
CsvContext
Gives you access to the CsvHelper CsvContext. You can modify the context before data is written.
Declaration
public Action<CsvContext> CsvContext { get; set; }
Property Value
Type | Description |
---|---|
Action<CsvContext> |
HttpContentType
The content type used when sending the http request content.
Declaration
public override string HttpContentType { get; set; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
CheckParameter()
Declaration
protected override void CheckParameter()
Overrides
CloseStream()
Declaration
protected override void CloseStream()
Overrides
InitStream()
Declaration
protected override void InitStream()
Overrides
WriteIntoStream(TInput)
Declaration
protected override void WriteIntoStream(TInput data)
Parameters
Type | Name | Description |
---|---|---|
TInput | data |