title: Navigation property is not being created in run time Entity framework
body: <p>I have a Quest and QuestTemplate class like below</p>
  
  <pre><code>public class Quest{
  
      public int ID {get;set;}
  
      public virtual QuestTemplate QuestTemplate {get;set;}
  
      public string Name{get;set;}
  }
  
  public class QuestTemplate{
  
      public int ID {get;set;}
  
      public QuestTemplate QuestTemplate {get;set;}
  
      public string Name{get;set;}
  
      public virtual Quest Quest{get;set;}
  }
  </code></pre>
  
  <p>I create Quest and QuestTemplate like below in runtime </p>
  
  <pre><code>Quest q = new Quest();
  q.Name = "Foo";
  q.QuestTemplate = new QuestTemplate();
  q.QuestTemplate.Name = "Bar";
  
  context.Quests.Add(q);
  context.SaveChanges();
  </code></pre>
  
  <p>It adds quest object and quest template object into related tables (Quests, QuestTemplates in this example). However the problem is that the Quest_ID column of quest template object in table is not set with quest object's ID. Instead, it remains null. How can I resolve this problem?</p>
  
  <p>P.S: I'm using EF5 with code first.</p>
  
  <p>Best regards,</p>
  
  <p>Kemal</p>