Interface IReader
Reads data for a given data source
Inherited Members
Namespace: LemonEdge.DataAccess.Core.Abstractions.Factories
Assembly: LemonEdge.DataAccess.Core.Abstractions.dll
Syntax
public interface IReader : ISimpleReader, IDisposable
Properties
CommandTimeout
The default comman timeout to use for the reader
Declaration
int? CommandTimeout { get; set; }
Property Value
Type | Description |
---|---|
int? |
Reader
Underlyig reader
Declaration
IAsyncDataReader Reader { get; }
Property Value
Type | Description |
---|---|
IAsyncDataReader |
Methods
CloseQuery()
Closes the query.
Declaration
void CloseQuery()
ExecuteQuery(IDbConnection)
Executes a query.
Declaration
Task ExecuteQuery(IDbConnection connection)
Parameters
Type | Name | Description |
---|---|---|
IDbConnection | connection |
Returns
Type | Description |
---|---|
Task |
GetConnection()
Gets the connection for the reader
Declaration
Task<IAsyncDbConnection> GetConnection()
Returns
Type | Description |
---|---|
Task<IAsyncDbConnection> |