Prepares the IDbCommand for execution in the database.

Namespace:  NHibernate.Impl
Assembly:  NHibernate (in NHibernate.dll)

Syntax

Visual Basic (Declaration)
Protected Sub Prepare ( _
	cmd As IDbCommand _
)
C#
protected void Prepare(
	IDbCommand cmd
)
Visual C++
protected:
void Prepare(
	IDbCommand^ cmd
)
JavaScript
function prepare(cmd);

Parameters

cmd
Type: System.Data..::.IDbCommand

Remarks

This takes care of hooking the IDbCommand up to an IDbConnection and IDbTransaction if one exists. It will call Prepare if the Driver supports preparing commands.

See Also