OracleParameter(string, OracleDbType, int, ParameterDirection, bool, byte, byte, string, DataRowVersion, object)
This constructor instantiates a new instance of the OracleParameter class using the supplied parameter name, data type, size, direction, null indicator, precision, scale, source column, source version and parameter value.
Declaration
// C# public OracleParameter(string parameterName, OracleDbType oraType, int size, ParameterDirection direction, bool isNullable, byte precision, byte scale, string srcColumn, DataRowVersion srcVersion, object obj);
Parameters
-
parameterNameThe parameter name.
-
oraTypeThe data type of the
OracleParameter. -
sizeThe size of the
OracleParametervalue. -
directionThe
ParameterDirectionvalue. -
isNullableAn indicator that specifies if the parameter value can be
null. -
precisionThe precision of the parameter value.
-
scaleThe scale of the parameter value.
-
srcColumnThe name of the source column.
-
srcVersionThe
DataRowVersionvalue. -
objThe parameter value.
Exceptions
ArgumentException - The supplied value does not belong to the type of Value property in any of the OracleTypes.
Remarks
Unless explicitly set in the constructor, all the properties have the default values.
Default Values:
-
DbType-String -
ParameterDirection-Input -
isNullable-true -
offset-0 -
OracleDbType-Varchar2 -
ParameterAlias- Empty string -
ParameterName- Empty string -
Precision-0 -
Size-0 -
SourceColumn- Empty string -
SourceVersion-Current -
ArrayBindStatus-Success -
Value-null