 <p>From: <a href="http://stackoverflow.com/questions/13581473/why-does-the-objectstatemanager-property-not-exist-in-my-db-context">Why does the ObjectStateManager property not exist in my db context?</a> </p> <pre><code>var manager = ((IObjectContextAdapter)db).ObjectContext.ObjectStateManager; </code></pre>