IDataExporter interface

Represents a type used to perform exporting of the data stream to some format (like CSV or PDF)

public interface Korzh.EasyQuery.Services.IDataExporter

Methods

Type Name Description
void Export(IDataReader dataRead, 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.IDataExporter.Export(System.Data.IDataReader,System.IO.Stream) method.
Task ExportAsync(IDataReader dataReader, Stream stream, IDataExportSettings settings) Asynchronical version of Korzh.EasyQuery.Services.IDataExporter.Export(System.Data.IDataReader,System.IO.Stream) method.
Task ExportAsync(IDataReader dataReader, TextWriter writer, IDataExportSettings settings) Asynchronical version of Korzh.EasyQuery.Services.IDataExporter.Export(System.Data.IDataReader,System.IO.Stream) method.
Task ExportAsync(IDataReader dataReader, TextWriter writer) Asynchronical version of Korzh.EasyQuery.Services.IDataExporter.Export(System.Data.IDataReader,System.IO.Stream) method.
String GetContentType() Gets the MIME content type of the exporting format.