Close a IDbCommand opened using PrepareCommand()

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

Syntax

C#
void CloseCommand(
	IDbCommand cmd,
	IDataReader reader
)
Visual Basic
Sub CloseCommand ( _
	cmd As IDbCommand, _
	reader As IDataReader _
)
Visual C++
void CloseCommand(
	IDbCommand^ cmd, 
	IDataReader^ reader
)

Parameters

cmd
Type: System.Data..::..IDbCommand
The IDbCommand to ensure is closed.
reader
Type: System.Data..::..IDataReader
The IDataReader to ensure is closed.

See Also