OracleParameter.OracleType Property

Definition

Gets or sets the OracleType of the parameter.

public:
 property System::Data::OracleClient::OracleType OracleType { System::Data::OracleClient::OracleType get(); void set(System::Data::OracleClient::OracleType value); };
public System.Data.OracleClient.OracleType OracleType { get; set; }
[System.Data.Common.DbProviderSpecificTypeProperty(true)]
public System.Data.OracleClient.OracleType OracleType { get; set; }
member this.OracleType : System.Data.OracleClient.OracleType with get, set
[<System.Data.Common.DbProviderSpecificTypeProperty(true)>]
member this.OracleType : System.Data.OracleClient.OracleType with get, set
Public Property OracleType As OracleType

Property Value

An OracleType value that is the OracleType of the parameter. The default is VarChar.

Attributes

Remarks

The OracleType and DbType are linked. Therefore, setting the DbType changes the OracleType to a supporting OracleType.

The DbType, OracleType, and Size properties of a parameter can be inferred by setting Value. Therefore, you are not required to specify them. However, they are not exposed in OracleParameter property settings. For example, if the size of the parameter has been inferred, Size does not contain inferred value after statement execution. For String data types the default is VarChar.

For a list of the supported data types, see the appropriate OracleType member. For more information, see DataAdapter Parameters.

Applies to