Prepares the IDbCommand for execution in the database.
Namespace: NHibernate.AdoNetAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
C# |
---|
protected void Prepare( IDbCommand cmd ) |
Visual Basic |
---|
Protected Sub Prepare ( _ cmd As IDbCommand _ ) |
Visual C++ |
---|
protected: void Prepare( IDbCommand^ cmd ) |
Parameters
- cmd
- Type: System.Data..::..IDbCommand
[Missing <param name="cmd"/> documentation for "M:NHibernate.AdoNet.AbstractBatcher.Prepare(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.