Get an IDataParameter for use in a SQL command

Namespace: CodeSmith.Engine
Assembly: CodeSmith.Engine (in CodeSmith.Engine.dll) Version: 6.0.0.0 (7.0.0.15127)

Syntax

C#
public virtual IDataParameter GetParameter(
	string name,
	DbType dbType,
	int size,
	ParameterDirection direction
)
Visual Basic
Public Overridable Function GetParameter ( 
	name As String,
	dbType As DbType,
	size As Integer,
	direction As ParameterDirection
) As IDataParameter

Parameters

name
Type: System..::..String
The name of the parameter to create
dbType
Type: System.Data..::..DbType
The System.Data.DbType of the parameter
size
Type: System..::..Int32
The size of the parameter
direction
Type: System.Data..::..ParameterDirection
The System.Data.ParameterDirection of the parameter

Return Value

Type: IDataParameter
An IDataParameter object

See Also