ObjectContext not adding an entity <p>I'm adding an entity to the object context like this</p> <pre><code>public partial class MyEntities : ObjectContext . . . </code></pre> <p>In a different class I've the following code</p> <pre><code>using (MyEntities dbContext = new MyEntities()) { Info x = new Info(); dbContext.AddToInfo(x); } </code></pre> <p>However when I check the entities in Info in 'dbContext' after adding 'x' to it the watch say that dbContext.Info 'Enumeration yielded no results'.</p> <p>Here's a screenshot of the Watch window</p> <p><img src="https://i.stack.imgur.com/iS8Kv.png" alt="VS Watch Window"></p> <p>Why is this happening?</p>