title: MVC datacontext controllers
body: <p>I would like to have a datacontext available in every controller:</p>
  
  <pre><code>public abstract class ApplicationController : Controller
      {
          private ProjectDataContext datacontext = new SchoolDataContext();
  
          protected ProjectDataContext DataContext
          {
              get { return datacontext; }
          }
      }
  </code></pre>
  
  <p>Controllers:</p>
  
  <pre><code>OhterControllers : ApplicationController
  </code></pre>
  
  <p>Is it a good idea to inherrit from ApplicationController (better way or pattern?) and is there a way to combinate it with Repository and Unit of work pattern</p>