title: Connect to Database with Connection String to use LINQ
body: <p>I have a connection string and I want to use LINQ to query a remote database. In the Microsoft example they use the <code>DataContext</code> class. However the <code>DataContext</code> does not appear in Intellisense. It says that it uses 'System.Data.Linq` but I am not seeing that either. <a href="http://msdn.microsoft.com/en-us/library/bb350721(v=vs.110).aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/bb350721(v=vs.110).aspx</a> </p>
  
  <p>Is there a Hello World example for using a connection string and LINQ?</p>
  
  <pre><code>public void SimpleQuery()
  {
      var connectionString = @"Server=10.1.10.1;database=Mydatabase;uid=myusername;password=mypassword;";
      DataContext dc = new DataContext(connectionString);
  
      var q =
          from n in dc.table
          select n;
  
      Console.WriteLine(n);
  }
  </code></pre>