Class CSVSimpleReader
Inheritance
CSVSimpleReader
Assembly: LemonEdge.API.dll
Syntax
public class CSVSimpleReader : ISimpleReader, IDisposable
Constructors
CSVSimpleReader(TextReader)
Declaration
public CSVSimpleReader(TextReader csv)
Parameters
CSVSimpleReader(TextReader, Dictionary<string, Type>)
Declaration
public CSVSimpleReader(TextReader csv, Dictionary<string, Type> columnTypes)
Parameters
Properties
Columns
Declaration
public string[] Columns { get; }
Property Value
Methods
Dispose()
Declaration
Dispose(bool)
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type |
Name |
Description |
bool |
disposing |
|
ExecuteQuery()
Declaration
public Task ExecuteQuery()
Returns
GetColumnType(string)
Gets the type of a column, by name.
Declaration
public Type GetColumnType(string colName)
Parameters
Type |
Name |
Description |
string |
colName |
The name of the column.
|
Returns
Declaration
public string[] GetHeaders()
Returns
GetResultValue(string)
Gets the value for a column.
Declaration
public (object Result, bool IsNull) GetResultValue(string column)
Parameters
Type |
Name |
Description |
string |
column |
The column.
|
Returns
GetStringResultValue(string)
Declaration
public string GetStringResultValue(string column)
Parameters
Type |
Name |
Description |
string |
column |
|
Returns
GetTotalCount()
Gets the total count of rows.
Declaration
public Task<int> GetTotalCount()
Returns
ReadNextResult()
Declaration
public Task<bool> ReadNextResult()
Returns
Implements
Extension Methods