Class DataReaderWrapper
Disposable wrapper over DbDataReader instance, which properly disposes associated objects.
public class DataReaderWrapper : IDisposable
- Inheritance
-
DataReaderWrapper
- Implements
- Extension Methods
Constructors
DataReaderWrapper(DbDataReader)
Creates wrapper instance for specified data reader.
public DataReaderWrapper(DbDataReader dataReader)
Parameters
dataReader
DbDataReaderWrapped data reader instance.
Properties
DataReader
public DbDataReader? DataReader { get; }
Property Value
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()