Create an IEnumerable wrapper over an IDataReader.
Namespace: NHibernate.ImplAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
C# |
---|
public EnumerableImpl( IDataReader reader, IDbCommand cmd, IEventSource session, bool readOnly, IType[] types, string[][] columnNames, RowSelection selection, HolderInstantiator holderInstantiator ) |
Visual Basic |
---|
Public Sub New ( _ reader As IDataReader, _ cmd As IDbCommand, _ session As IEventSource, _ readOnly As Boolean, _ types As IType(), _ columnNames As String()(), _ selection As RowSelection, _ holderInstantiator As HolderInstantiator _ ) |
Visual C++ |
---|
public: EnumerableImpl( IDataReader^ reader, IDbCommand^ cmd, IEventSource^ session, bool readOnly, array<IType^>^ types, array<array<String^>^>^ columnNames, RowSelection^ selection, HolderInstantiator^ holderInstantiator ) |
Parameters
- reader
- Type: System.Data..::..IDataReader
The IDataReader to enumerate over.
- cmd
- Type: System.Data..::..IDbCommand
The IDbCommand used to create the IDataReader.
- session
- Type: NHibernate.Event..::..IEventSource
The ISession to use to load objects.
- readOnly
- Type: System..::..Boolean
[Missing <param name="readOnly"/> documentation for "M:NHibernate.Impl.EnumerableImpl.#ctor(System.Data.IDataReader,System.Data.IDbCommand,NHibernate.Event.IEventSource,System.Boolean,NHibernate.Type.IType[],System.String[][],NHibernate.Engine.RowSelection,NHibernate.Hql.HolderInstantiator)"]
- types
- Type: array<NHibernate.Type..::..IType>[]()[][]
The ITypes contained in the IDataReader.
- columnNames
- Type: array<array<System..::..String>[]()[][]>[]()[][]
The names of the columns in the IDataReader.
- selection
- Type: NHibernate.Engine..::..RowSelection
The RowSelection that should be applied to the IDataReader.
- holderInstantiator
- Type: NHibernate.Hql..::..HolderInstantiator
Instantiator of the result holder (used for "select new SomeClass(...)" queries).
Remarks
The IDataReader should already be positioned on the first record in RowSelection.