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,
	string sourceColumn,
	DataRowVersion sourceVersion
)
Visual Basic
Public Overridable Function GetParameter ( 
	name As String,
	dbType As DbType,
	size As Integer,
	sourceColumn As String,
	sourceVersion As DataRowVersion
) 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
sourceColumn
Type: System..::..String
The source column of the parameter
sourceVersion
Type: System.Data..::..DataRowVersion
The System.Data.DataRowVersion of the parameter

Return Value

Type: IDataParameter
An IDataParameter object

See Also