title: ASP.NET database connection and queries
body: <p>I'm used to PHP style MVC frameworks which are a little different from the way ASP's MVC frameworks work.</p>
  
  <p>Is there a built in database class? Or do I need to code my own database class using a web.conf connection string?</p>
  
  <p>With PHP's MVC frameworks you simply add your database connection information into a database and then query it with something like:</p>
  
  <pre><code>$results = $this-&gt;db-&gt;query("select * from table");
  </code></pre>