Table of Contents

Method EnsureReaderType

Namespace
Open.Database.Extensions
Assembly
Open.Database.Extensions.Core.dll

EnsureReaderType<TActual>(TActual)

Validates and properly acquires the expected type of the reader.

protected static TReader EnsureReaderType<TActual>(TActual reader) where TActual : IDataReader

Parameters

reader TActual

The reader to cast.

Returns

TReader

The expected reader.

Type Parameters

TActual

The actual type of the reader.