Table of Contents

Class DataReader

Namespace
LinqToDB.Data
Assembly
linq2db.dll
public class DataReader : IDisposable
Inheritance
DataReader
Implements
Extension Methods

Constructors

DataReader(CommandInfo, DataReaderWrapper)

public DataReader(CommandInfo commandInfo, DataReaderWrapper dataReader)

Parameters

commandInfo CommandInfo
dataReader DataReaderWrapper

Properties

CommandInfo

public CommandInfo? CommandInfo { get; }

Property Value

CommandInfo

Reader

public DbDataReader? Reader { get; }

Property Value

DbDataReader

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