Add(string, OracleDbType, int, ParameterDirection, bool, byte, byte, string, DataRowVersion, object)
This method adds an OracleParameter object to the collection using the supplied name, database type, size, direction, null indicator, precision, scale, source column, source version, and parameter value.
Declaration
// C#
public OracleParameter Add(string name, OracleDbType dbType, int size,
ParameterDirection dir, bool isNullable, byte precision,
byte scale, string srcColumn, DataRowVersion version, object val);
Parameters
-
name
The parameter name.
-
dbType
The data type of the
OracleParameter. -
size
The size of
OracleParameter. -
dir
The
ParameterDirectionvalue. -
isNullable
An indicator that specifies if the
parametervalue can benull. -
precision
The precision of the
parametervalue. -
scale
The scale of the
parametervalue. -
srcColumn
The name of the source column.
-
version
The
DataRowVersionvalue. -
val
The
parametervalue.
Return Value
The newly created OracleParameter object which was added to the collection.
Exceptions
ArgumentException - The type of supplied val does not belong to the type of Value property in any of the ODP.NET Types.