re-set the index of each parameter in the final command.
Namespace: NHibernate.SqlCommandAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
C# |
---|
void ResetParametersIndexesForTheCommand( int singleSqlParametersOffset ) |
Visual Basic |
---|
Sub ResetParametersIndexesForTheCommand ( _ singleSqlParametersOffset As Integer _ ) |
Visual C++ |
---|
void ResetParametersIndexesForTheCommand( int singleSqlParametersOffset ) |
Parameters
- singleSqlParametersOffset
- Type: System..::..Int32
The offset from where start the list of IDataParameter, in the given command, for the this SqlCommandImpl.
Remarks
Suppose the final command is composed by two queries. The singleSqlParametersOffset for the first query is zero.
If the first query 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).
This method should be called before call PrepareCommand(CommandType, SqlString, array<SqlType>[]()[][]).