title: C# LINQ How to get a data source from a db?
body: <p>I am trying use LINQ in a C# program to get information from a database. I have found a lot of examples showing basic to advanced queries, but I can't find anything to get a basic database connection. See basic LINQ example below:</p>
  
  <pre><code>var adultNames = from person in people
                   where person.Age &gt;= 18
                   select person.Name; 
  </code></pre>
  
  <p>I just can't figure out how to get to a specific database table and return information out of it. I want to be able to connect to a db table and return some information out of it. Thanks!</p>