Table of Contents

Class DataReaderWrapper

Namespace
LinqToDB.Data
Assembly
linq2db.dll

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 DbDataReader

Wrapped data reader instance.

Properties

DataReader

public DbDataReader? DataReader { get; }

Property Value

DbDataReader

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()