Get a non-batchable an IDbCommand to use for inserting / deleting / updating.
Must be explicitly released by CloseCommand()
Namespace:
NHibernate.EngineAssembly: NHibernate (in NHibernate.dll)
Syntax
Visual Basic (Declaration) |
---|
Function PrepareCommand ( _ commandType As CommandType, _ sql As SqlString, _ parameterTypes As SqlType() _ ) As IDbCommand |
C# |
---|
IDbCommand PrepareCommand( CommandType commandType, SqlString sql, SqlType[] parameterTypes ) |
Visual C++ |
---|
IDbCommand^ PrepareCommand( CommandType commandType, SqlString^ sql, array<SqlType^>^ parameterTypes ) |
JavaScript |
---|
function prepareCommand(commandType, sql, 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.