Interface ISimpleReader
Reads data for a given data source
Inherited Members
Namespace: LemonEdge.Utils.Database
Assembly: LemonEdge.Utils.dll
Syntax
public interface ISimpleReader : IDisposable
Properties
Columns
The column list.
Declaration
string[] Columns { get; }
Property Value
| Type | Description |
|---|---|
| string[] |
Methods
ExecuteQuery()
Executes a query.
Declaration
Task ExecuteQuery()
Returns
| Type | Description |
|---|---|
| Task |
GetColumnType(string)
Gets the type of a column, by name.
Declaration
Type GetColumnType(string colName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | colName | The name of the column. |
Returns
| Type | Description |
|---|---|
| Type |
GetResultValue(string)
Gets the value for a column.
Declaration
(object Result, bool IsNull) GetResultValue(string column)
Parameters
| Type | Name | Description |
|---|---|---|
| string | column | The column. |
Returns
| Type | Description |
|---|---|
| (object Result, bool IsNull) |
GetTotalCount()
Gets the total count of rows.
Declaration
Task<int> GetTotalCount()
Returns
| Type | Description |
|---|---|
| Task<int> |
ReadNextResult()
Reads the next result.
Declaration
Task<bool> ReadNextResult()
Returns
| Type | Description |
|---|---|
| Task<bool> |