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, IList<Parameter> commandQueryParametersList, int singleSqlParametersOffset, ISessionImplementor session ) |
Visual Basic |
---|
Sub Bind ( _ command As IDbCommand, _ commandQueryParametersList As IList(Of Parameter), _ singleSqlParametersOffset As Integer, _ session As ISessionImplementor _ ) |
Visual C++ |
---|
void Bind( IDbCommand^ command, IList<Parameter^>^ commandQueryParametersList, int singleSqlParametersOffset, ISessionImplementor^ session ) |
Parameters
- command
- Type: System.Data..::..IDbCommand
The command into which the value should be bound.
- commandQueryParametersList
- Type: System.Collections.Generic..::..IList<(Of <(<'Parameter>)>)>
The parameter-list of the whole query of the command.
- singleSqlParametersOffset
- Type: System..::..Int32
The offset from where start the list of IDataParameter, in the given command, for the this SqlCommandImpl.
- session
- Type: NHibernate.Engine..::..ISessionImplementor
The session against which the current execution is occuring.
Remarks
Suppose the command is composed by two queries. The singleSqlParametersOffset for the first query is zero.
If the first query in command has 12 parameters (size of its SqlType array) the offset to bind all IParameterSpecifications, of the second query in the
command, is 12 (for the first query we are using from 0 to 11).