Bind the appropriate value into the given command.
Namespace: NHibernate.SqlCommandAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
C# |
---|
void Bind( IDbCommand command, ISessionImplementor session ) |
Visual Basic |
---|
Sub Bind ( _ command As IDbCommand, _ session As ISessionImplementor _ ) |
Visual C++ |
---|
void Bind( IDbCommand^ command, ISessionImplementor^ session ) |
Parameters
- command
- Type: System.Data..::..IDbCommand
The command into which the value should be bound.
- session
- Type: NHibernate.Engine..::..ISessionImplementor
The session against which the current execution is occuring.
Remarks
Use this method when the command contains just 'this' instance of ISqlCommand.
Use the overload Bind(IDbCommand, IList<(Of <<'(Parameter>)>>), Int32, ISessionImplementor) when the command contains more instances of ISqlCommand.