title: How to establish a OracleConnection without making use of the obsolete OracleConnection Class
body: <p>What's the 'new' way of establishing a OraConnection? 
  Microsoft defines several classes as obsolete.</p>
  
  <p><a href="https://msdn.microsoft.com/en-us/library/system.data.oracleclient.aspx" rel="noreferrer">https://msdn.microsoft.com/en-us/library/system.data.oracleclient.aspx</a></p>
  
  <p>I used to make use of something along those lines:</p>
  
  <pre><code> string queryString = 
      "INSERT INTO Dept (DeptNo, Dname, Loc) values (50, 'TECHNOLOGY', 'DENVER')";
  using (OracleConnection connection = new OracleConnection(connectionString))
  {
      OracleCommand command = new OracleCommand(queryString);
      command.Connection = connection;
      try
      {
          connection.Open();
          command.ExecuteNonQuery();
      }
      catch (Exception ex)
      {
          Console.WriteLine(ex.Message);
      }
  </code></pre>
  
  <p>However all those Classes seem to be deprecated.</p>