title: ASP.NET MVC with Entity Framework
body: <p>I'm thinking it would be smart to setup the Entity object context in Application_BeginRequest, store it in Request.items, use it throughout the request and dispose it in Application_EndRequest. That way the context is always available and I can navigate the Entity Framework object graph in my views, lazy loading what I haven't already eager fetched.</p>
  
  <p>I think this would make it like developing on <a href="http://en.wikipedia.org/wiki/Ruby_on_Rails" rel="nofollow noreferrer">Ruby on Rails</a>.</p>
  
  <p>It might be I should be shot for speaking such heresy, but it's so crazy it just might work :)</p>
  
  <p>I can't get Application_BeginRequest and ..EndRequest to fire on <a href="http://en.wikipedia.org/wiki/ASP.NET_MVC_Framework" rel="nofollow noreferrer">ASP.NET MVC</a> though. Aren't they fired? Any special trick I need to do?</p>