Fetch a IDbCommand, call SetMaxRows and then execute it, advance to the first result and return an SQL IDataReader

Namespace: NHibernate.Loader
Assembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
protected IDataReader GetResultSet(
	IDbCommand st,
	bool autoDiscoverTypes,
	bool callable,
	RowSelection selection,
	ISessionImplementor session
)
Visual Basic
Protected Function GetResultSet ( _
	st As IDbCommand, _
	autoDiscoverTypes As Boolean, _
	callable As Boolean, _
	selection As RowSelection, _
	session As ISessionImplementor _
) As IDataReader
Visual C++
protected:
IDataReader^ GetResultSet(
	IDbCommand^ st, 
	bool autoDiscoverTypes, 
	bool callable, 
	RowSelection^ selection, 
	ISessionImplementor^ session
)

Parameters

st
Type: System.Data..::..IDbCommand
The IDbCommand to execute.
autoDiscoverTypes
Type: System..::..Boolean
true if result types need to be auto-discovered by the loader; false otherwise.
callable
Type: System..::..Boolean

[Missing <param name="callable"/> documentation for "M:NHibernate.Loader.Loader.GetResultSet(System.Data.IDbCommand,System.Boolean,System.Boolean,NHibernate.Engine.RowSelection,NHibernate.Engine.ISessionImplementor)"]

selection
Type: NHibernate.Engine..::..RowSelection
The RowSelection to apply to the IDbCommand and IDataReader.
session
Type: NHibernate.Engine..::..ISessionImplementor
The ISession to load in.

Return Value

An IDataReader advanced to the first record in RowSelection.

See Also