Class DataReader
public class DataReader : IDisposable
- Inheritance
-
DataReader
- Implements
- Extension Methods
Constructors
DataReader(CommandInfo, DataReaderWrapper)
public DataReader(CommandInfo commandInfo, DataReaderWrapper dataReader)
Parameters
commandInfo
CommandInfodataReader
DataReaderWrapper
Properties
CommandInfo
public CommandInfo? CommandInfo { get; }
Property Value
Reader
public DbDataReader? Reader { get; }
Property Value
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Execute<T>()
public T Execute<T>()
Returns
- T
Type Parameters
T
Query<T>()
public IEnumerable<T> Query<T>()
Returns
- IEnumerable<T>
Type Parameters
T
Query<T>(Func<DbDataReader, T>)
public IEnumerable<T> Query<T>(Func<DbDataReader, T> objectReader)
Parameters
objectReader
Func<DbDataReader, T>
Returns
- IEnumerable<T>
Type Parameters
T
Query<T>(T)
public IEnumerable<T> Query<T>(T template)
Parameters
template
T
Returns
- IEnumerable<T>
Type Parameters
T