Generates an IDbCommand from the SqlString according to the requirements of the DataProvider.

Namespace:  NHibernate.Driver
Assembly:  NHibernate (in NHibernate.dll)

Syntax

Visual Basic (Declaration)
Function GenerateCommand ( _
	type As CommandType, _
	sqlString As SqlString, _
	parameterTypes As SqlType() _
) As IDbCommand
C#
IDbCommand GenerateCommand(
	CommandType type,
	SqlString sqlString,
	SqlType[] parameterTypes
)
Visual C++
IDbCommand^ GenerateCommand(
	CommandType type, 
	SqlString^ sqlString, 
	array<SqlType^>^ parameterTypes
)
JavaScript
function generateCommand(type, sqlString, parameterTypes);

Parameters

type
Type: System.Data..::.CommandType
The CommandType of the command to generate.
sqlString
Type: NHibernate.SqlCommand..::.SqlString
The SqlString that contains the SQL.
parameterTypes
Type: array< NHibernate.SqlTypes..::.SqlType >[]()[]
The types of the parameters to generate for the command.

Return Value

An IDbCommand with the CommandText and Parameters fully set.

See Also