CsvDataExporter class

An implementation of Korzh.EasyQuery.Services.IDataExporter interface, that performs exporting of the data stream to CSV format

public class Korzh.EasyQuery.Services.CsvDataExporter
    : IDataExporter

Methods

Type Name Description
void Export(IDataReader dataReader, Stream stream) Exports the specified data to the stream.
void Export(IDataReader dataReader, Stream stream, IDataExportSettings settings) Exports the specified data to the stream.
Task ExportAsync(IDataReader dataReader, Stream stream) Asynchronical version of Korzh.EasyQuery.Services.CsvDataExporter.Export(System.Data.IDataReader,System.IO.Stream) method.
Task ExportAsync(IDataReader dataReader, Stream stream, IDataExportSettings formats) Asynchronical version of Korzh.EasyQuery.Services.CsvDataExporter.Export(System.Data.IDataReader,System.IO.Stream) method.
Task ExportAsync(IDataReader dataReader, TextWriter writer) Asynchronical version of Korzh.EasyQuery.Services.CsvDataExporter.Export(System.Data.IDataReader,System.IO.Stream) method.
Task ExportAsync(IDataReader dataReader, TextWriter writer, IDataExportSettings formats) Asynchronical version of Korzh.EasyQuery.Services.CsvDataExporter.Export(System.Data.IDataReader,System.IO.Stream) method.
String GetContentType() Gets the MIME content type of the exporting format.