title: How can I access the enumeration OracleDbType?
body: <p>My C# (.NET 4.0) application is calling a stored procedure in a PL/SQL database. I have added the namespace System.Data.OracleClient, and added the parameters however whenever I run it, I get an exception saying parameters don't match. </p>
  
  <p>I believe the issue is because my parameters have been of type DbType.String or OracleType.VarChar. Reading online revealed that people use another enumeration called OracleDbType (eg. OracleDbType.VarChar2).</p>
  
  <p>So, how can I access this enumeration?</p>
  
  <pre><code> OracleParameter returnParam = new OracleParameter("result", DbType.Xml);
              returnParam.Direction = ParameterDirection.ReturnValue;
              objCmd.Parameters.Add(returnParam);
  
              OracleParameter param1 = new OracleParameter("pivequivalentinstrument", DbType.String);
              param1.Direction = ParameterDirection.Input;
              param1.Value = EquivalentInstrKey;
              objCmd.Parameters.Add(param1);
  </code></pre>