Generates an IDbDataParameter for the IDbCommand. It does not add the IDbDataParameter to the IDbCommand's Parameter collection.

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

Syntax

Visual Basic (Declaration)
Protected Function GenerateParameter ( _
	command As IDbCommand, _
	name As String, _
	sqlType As SqlType _
) As IDbDataParameter
C#
protected IDbDataParameter GenerateParameter(
	IDbCommand command,
	string name,
	SqlType sqlType
)
Visual C++
protected:
IDbDataParameter^ GenerateParameter(
	IDbCommand^ command, 
	String^ name, 
	SqlType^ sqlType
)
JavaScript
function generateParameter(command, name, sqlType);

Parameters

command
Type: System.Data..::.IDbCommand
The IDbCommand to use to create the IDbDataParameter.
name
Type: System..::.String
The name to set for IDbDataParameter.Name
sqlType
Type: NHibernate.SqlTypes..::.SqlType
The SqlType to set for IDbDataParameter.

Return Value

An IDbDataParameter ready to be added to an IDbCommand.

See Also