| IDatabaseAbstracterCreateAndAddParameter Method (IDbCommand, DbType, String, Int32, ParameterDirection, Object) |
Creates a SQL parameter and attaches it to the given IDbCommand.
Namespace: Activsoft.Engine.DbAssembly: Activsoft.Engine (in Activsoft.Engine.dll) Version: 6.0.0.0
SyntaxIDbDataParameter CreateAndAddParameter(
IDbCommand cmd,
DbType type,
string name,
int size,
ParameterDirection direction,
Object paramValue
)
Function CreateAndAddParameter (
cmd As IDbCommand,
type As DbType,
name As String,
size As Integer,
direction As ParameterDirection,
paramValue As Object
) As IDbDataParameter
IDbDataParameter^ CreateAndAddParameter(
IDbCommand^ cmd,
DbType type,
String^ name,
int size,
ParameterDirection direction,
Object^ paramValue
)
abstract CreateAndAddParameter :
cmd : IDbCommand *
type : DbType *
name : string *
size : int *
direction : ParameterDirection *
paramValue : Object -> IDbDataParameter
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 - size
- Type: SystemInt32
the maximum size of the parameter - direction
- Type: System.DataParameterDirection
the direction of the parameter (in, ou, in out) - paramValue
- Type: SystemObject
the parameter's value; to pass the NULL value, you must use DBNull.Value
Return Value
Type:
IDbDataParameterthe created parameter
See Also