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
-
nameThe parameter name.
-
dbTypeThe data type of the
OracleParameter. -
sizeThe size of
OracleParameter. -
dirThe
ParameterDirectionvalue. -
isNullableAn indicator that specifies if the
parametervalue can benull. -
precisionThe precision of the
parametervalue. -
scaleThe scale of the
parametervalue. -
srcColumnThe name of the source column.
-
versionThe
DataRowVersionvalue. -
valThe
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.