Bind the appropriate value into the given command.

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

Syntax

C#
void Bind(
	IDbCommand command,
	IList<Parameter> multiSqlQueryParametersList,
	int singleSqlParametersOffset,
	IList<Parameter> sqlQueryParametersList,
	QueryParameters queryParameters,
	ISessionImplementor session
)
Visual Basic
Sub Bind ( _
	command As IDbCommand, _
	multiSqlQueryParametersList As IList(Of Parameter), _
	singleSqlParametersOffset As Integer, _
	sqlQueryParametersList As IList(Of Parameter), _
	queryParameters As QueryParameters, _
	session As ISessionImplementor _
)
Visual C++
void Bind(
	IDbCommand^ command, 
	IList<Parameter^>^ multiSqlQueryParametersList, 
	int singleSqlParametersOffset, 
	IList<Parameter^>^ sqlQueryParametersList, 
	QueryParameters^ queryParameters, 
	ISessionImplementor^ session
)

Parameters

command
Type: System.Data..::..IDbCommand
The command into which the value should be bound.
multiSqlQueryParametersList
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 query where this IParameterSpecification was used.
sqlQueryParametersList
Type: System.Collections.Generic..::..IList<(Of <(<'Parameter>)>)>
The list of Sql query parameter in the exact sequence they are present in the query where this IParameterSpecification was used.
queryParameters
Type: NHibernate.Engine..::..QueryParameters
The defined values for the query where this IParameterSpecification was used.
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).

See Also