Override to make any adjustments to each IDbCommand object before it added to the batcher.

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

Syntax

C#
public virtual void AdjustCommand(
	IDbCommand command
)
Visual Basic
Public Overridable Sub AdjustCommand ( _
	command As IDbCommand _
)
Visual C++
public:
virtual void AdjustCommand(
	IDbCommand^ command
)

Parameters

command
Type: System.Data..::..IDbCommand
The command.

Implements

IDriver..::..AdjustCommand(IDbCommand)

Remarks

This method is similar to the OnBeforePrepare(IDbCommand) but, instead be called just before execute the command (that can be a batch) is executed before add each single command to the batcher and before OnBeforePrepare(IDbCommand) . If you have to adjust parameters values/type (when the command is full filled) this is a good place where do it.

See Also