Click or drag to resize
IDatabaseAbstracterCreateAndAddParameter Method (IDbCommand, DbType, String, Object)
Creates a SQL parameter and attaches it to the given IDbCommand.

Namespace: Activsoft.Engine.Db
Assembly: Activsoft.Engine (in Activsoft.Engine.dll) Version: 6.0.0.0
Syntax
IDbDataParameter CreateAndAddParameter(
	IDbCommand cmd,
	DbType type,
	string name,
	Object paramValue
)

Parameters

cmd
Type: System.DataIDbCommand
the IDbCommand to add the parameter to
type
Type: System.DataDbType
the type of the parameter
name
Type: SystemString
the name of the parameter
paramValue
Type: SystemObject
the parameter's value; to pass the NULL value, you must use DBNull.Value

Return Value

Type: IDbDataParameter
the created parameter
See Also