title: Entity Framework not inserting record
body: <p>I'm working on a small project in WPF where you can insert, edit and search Recipes. I'm using Entity for this.</p>
  
  <p>Recipe has a property, <code>list&lt;Ingredient&gt;</code>. When I insert an ingredient, it's OK, but when I insert a recipe with a <code>list&lt;Ingredient&gt;</code>, everything is ok except that in table recipe, there is no column ingredient at all. But in debug I clearly can see that in my method where I insert a recipe , the object recipe has ingredients count... I have spend couple hours trying different things out but with no luck.</p>
  
  <p>This is how I insert (same as ingredient , where everything works)</p>
  
  <pre><code>public static void InsertRecipe(Recipe recipe)
  {
      RecipeDbContext ctx = new RecipeDbContext();
      ctx.Recipes.Add(recipe);
      ctx.SaveChanges();
  }    
  </code></pre>
  
  <p>Screen-shots from debug:</p>
  
  <p><a href="https://i.stack.imgur.com/RlDKt.png" rel="nofollow noreferrer">Recipe Table</a></p>
  
  <p><a href="https://i.stack.imgur.com/TxyPv.png" rel="nofollow noreferrer">Recipe object properties</a></p>
  
  <p><a href="https://i.stack.imgur.com/R07Rj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/R07Rj.png" alt="Populate a list&lt;Ingredients&gt; from ingredients in DB to add it to the new Recipe"></a>
  Just for testing purposes , the ingredients should come from a listbox later on.
  When I press ctrl property menu is fading away (reason why screen-shot is the way it is)</p>