Get a batchable IDbCommand to use for inserting / deleting / updating
(might be called many times before a single call to ExecuteBatch()
Namespace: NHibernate.EngineAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
C# |
---|
IDbCommand PrepareBatchCommand( CommandType commandType, SqlString sql, SqlType[] parameterTypes ) |
Visual Basic |
---|
Function PrepareBatchCommand ( _ commandType As CommandType, _ sql As SqlString, _ parameterTypes As SqlType() _ ) As IDbCommand |
Visual C++ |
---|
IDbCommand^ PrepareBatchCommand( CommandType commandType, SqlString^ sql, array<SqlType^>^ parameterTypes ) |
Parameters
- commandType
- Type: System.Data..::..CommandType
The CommandType of the command.
- sql
- Type: NHibernate.SqlCommand..::..SqlString
The SqlString to convert to an IDbCommand.
- parameterTypes
- Type: array<NHibernate.SqlTypes..::..SqlType>[]()[][]
The SqlTypes of parameters in sql.
Return Value
[Missing <returns> documentation for "M:NHibernate.Engine.IBatcher.PrepareBatchCommand(System.Data.CommandType,NHibernate.SqlCommand.SqlString,NHibernate.SqlTypes.SqlType[])"]
Remarks
After setting parameters, call AddToBatch() - do not execute the statement
explicitly.