title: Get oracle output parameter using OracleCommand
body: <p>I have a oracle stored procedure which will return a value. I need to get the OUTPUT value in my C# program. I need to know how we can get the OUTPUT parameter using the OracleCommands AddWithValue method.</p>
  
  <p>The way i have written now is: </p>
  
  <pre><code> OracleCommand Ocmd = new OracleCommand(_StoredProcedure, OraCon);
      Ocmd.CommandType = CommandType.StoredProcedure;
  
  
              Ocmd.Parameters.AddWithValue("Filed1", "Value1");
  
              Ocmd.Parameters.AddWithValue("OUTPUTParam","").Direction = ParameterDirection.Output;
  
      OraCon.Open();
      int RecivedDetID = Ocmd.ExecuteNonQuery();
      OraCon.Close();
  
      return Ocmd.Parameters[_OutParam].Value.ToString();
  </code></pre>
  
  <p>I know the OUTPUTPARAm how i have called is wrong. How can i achieve it using the 
  AddWithValue method of the OracleCommand. I dont want to use the OracleCommands Add method where we need to specify the Type also.</p>