title: umbraco 7 how to access database MVC
body: <p>I have Umbraco 7 website with MVC.</p>
  
  <p>I want to perform some custom action on the database.</p>
  
  <p>As I understand I should be using DbContext to connect.</p>
  
  <p>I have referenced System.Data.Entity to get to DbContext class. However when I'm trying to use DbContext I'm getting an error saying</p>
  
  <pre><code>The type or namespace name 'DbContext' could not be found (are you missing
  a using directive or an assembly reference?)
  </code></pre>
  
  <p>In my models namespace:</p>
  
  <pre><code>public class umbracoDbDSN : DbContext
  {
      //some code
  }
  </code></pre>
  
  <p>Can you let me know what I am missing?</p>
  
  <p>Thanks</p>