Esempio n. 1
0
		/// <summary> 
		/// Bind all parameter values into the prepared statement in preparation for execution. 
		/// </summary>
		/// <param name="statement">The ADO prepared statement </param>
		/// <param name="queryParameters">The encapsulation of the parameter values to be bound. </param>
		/// <param name="startIndex">The position from which to start binding parameter values. </param>
		/// <param name="session">The originating session. </param>
		/// <returns> The number of ADO bind positions actually bound during this method execution. </returns>
		protected virtual int BindParameterValues(IDbCommand statement, QueryParameters queryParameters,
		                                                   int startIndex, ISessionImplementor session)
		{
			// NH Different behavior:
			// The responsibility of parameter binding was entirely moved to QueryParameters
			// to deal with positionslParameter+NamedParameter+ParameterOfFilters
			return queryParameters.BindParameters(statement, startIndex, session);
		}
		protected virtual int BindQueryParameters(IDbCommand command, QueryParameters parameter, int colIndex)
		{
			colIndex += parameter.BindParameters(command, colIndex, session);
			return colIndex;
		}