An implementation of IDataReader that will work with either an IDataReader returned by Execute or with an IDataReader whose contents have been read into a NDataReader.

Namespace: NHibernate.Driver
Assembly:   NHibernate (in NHibernate)
Version: 1.2.0.4000

Syntax

Visual Basic (Declaration)
Public Class NHybridDataReader _
	Implements IDataReader, IDisposable, IDataRecord
C#
public class NHybridDataReader : IDataReader, IDisposable, IDataRecord
Visual C++
public ref class NHybridDataReader : IDataReader, IDisposable, IDataRecord

Remarks

This allows NHibernate to use the underlying IDataReader for as long as possible without the need to read everything into the NDataReader.

The consumer of the IDataReader returned from IBatcher does not need to know the underlying reader and can use it the same even if it switches from an IDataReader to NDataReader in the middle of its use.

Inheritance Hierarchy

System.Object
  NHibernate.Driver.NHybridDataReader