Gets an IDataReader by calling ExecuteReader on the IDbCommand.

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

Syntax

C#
IDataReader ExecuteReader(
	IDbCommand cmd
)
Visual Basic
Function ExecuteReader ( _
	cmd As IDbCommand _
) As IDataReader
Visual C++
IDataReader^ ExecuteReader(
	IDbCommand^ cmd
)

Parameters

cmd
Type: System.Data..::..IDbCommand
The IDbCommand to execute to get the IDataReader.

Return Value

The IDataReader from the IDbCommand.

Remarks

The Batcher is responsible for ensuring that all of the Drivers rules for how many open IDataReaders it can have are followed.

See Also