title: Type or namespace name Oracle could not found Missing Directive
body: <p>I  want to build simple console application in C#.Net which will take name of table as argument and display all the data in that table. 
  So I write the following code in C#</p>
  
  <pre><code>using System;
  using Oracle.ManagedDataAccess.Client;
  using Oracle.ManagedDataAccess.Types;
  
  namespace Ass1Que1
  {
      class Program
      {
          static void Main(string[] args)
          {
              try
              {
                  // Please replace the connection string attribute settings
                  string constr = "DATA SOURCE=localhost:1521/orclpdb;PERSIST SECURITY INFO=True;USER ID=HR;password=hr";
  
                  OracleConnection con = new OracleConnection(constr);
                  con.Open();
                  Console.WriteLine("Connected to Oracle Database {0}", con.ServerVersion);
                  // con.Dispose();
                  OracleCommand cmd = con.CreateCommand();
                  cmd.CommandText = "SELECT FIRST_NAME FROM EMPLOYEES";
                  OracleDataReader reader = cmd.ExecuteReader();
                  while (reader.Read())
                  {
                      Console.WriteLine("" + reader.GetString(0));
                  }
                  Console.WriteLine("Press RETURN to exit.");
                  Console.ReadLine();
              }
              catch (Exception ex)
              {
                  Console.WriteLine("Error : {0}", ex);
                  Console.ReadKey();
              }
          }
      }
      }
  </code></pre>
  
  <p>But I am getting error as  </p>
  
  <pre><code> type or namespace name Oracle could not found. 
  </code></pre>
  
  <p>I know I have to add some dll reference but I dont know how to do that.
  Please suggest me how to get this from error.</p>
  
  <p>Thanks in advance!</p>