title: Entity Framework 5 turn off auto compilation in RTM?
body: <p>I see many examples over the internet on how to turn off the automatic compilation with:</p>
  
  <pre><code>using (var db = new SampleEntities())
  {
      db.ContextOptions.DefaultQueryPlanCaching = false;
  }
  </code></pre>
  
  <p>However, I can't see this property anywhere on the db context. It doesn't even have ContextOptions.</p>
  
  <p>There is somewhere on the internet mentioned to cast it to IObjectContextAdapter, there I get ContextOptions, but still not that property</p>
  
  <pre><code>((IObjectContextAdapter)db).ObjectContext.ContextOptions.?
  </code></pre>
  
  <p>Note that I'm using the default generation in EF5 which uses DbContext and DbSets.</p>
  
  <p>How do I turn it off? Note also that this is RTM, not beta, or RC of .NET 4.5</p>