Creates a NDataReader from a IDataReader
Namespace: NHibernate.DriverAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
C# |
---|
public NDataReader( IDataReader reader, bool isMidstream ) |
Visual Basic |
---|
Public Sub New ( _ reader As IDataReader, _ isMidstream As Boolean _ ) |
Visual C++ |
---|
public: NDataReader( IDataReader^ reader, bool isMidstream ) |
Parameters
- reader
- Type: System.Data..::..IDataReader
The IDataReader to get the records from the Database.
- isMidstream
- Type: System..::..Boolean
trueTruetruetrue (True in Visual Basic) if we are loading the IDataReader in the middle of reading it.
Remarks
NHibernate attempts to not have to read the contents of an IDataReader into memory until it absolutely
has to. What that means is that it might have processed some records from the IDataReader and will
pick up the IDataReader midstream so that the underlying IDataReader can be closed
so a new one can be opened.