title: The child/dependent side could not be determined for the one-to-one relationship
body: <p>I am trying to update my database with "update-database" command in package manager console, But I have this kind of error:</p>
  
  <pre><code>The child/dependent side could not be determined for the one-to-one 
  relationship between 'Country.CapitalCity' and 'CapitalCity.Country'. To 
  identify the child/dependent side of the relationship, configure the foreign 
  key property. If these navigations should not be part of the same 
  relationship configure them without specifying the inverse. See 
  http://go.microsoft.com/fwlink/?LinkId=724062 for more details.
  </code></pre>
  
  <p>My Model classes look like this:</p>
  
  <pre><code>public class Country
  {
      public int ID { get; set; }
      public string Name { get; set; }
      public long Population { get; set; }
  
      public int CapitalCityID { get; set; }
      public CapitalCity CapitalCity { get; set; }
  }
  
  public class CapitalCity
  {
      public int ID { get; set; }
      public int Name { get; set; }
  
      public int CountryID { get; set; }
      public Country Country { get; set; }
  }
  </code></pre>
  
  <p>After searching info about this problem, I added the following code in my DbContextModelSnapshot, but I still have problem.</p>
  
  <pre><code>modelBuilder.Entity&lt;Country&gt;()
              .HasOne(a =&gt; a.CapitalCity)
              .WithOne(a =&gt; a.Country)
              .HasForeignKey&lt;CapitalCity&gt;(c =&gt; c.CountryID);
  </code></pre>
  
  <p>What mistake do I have?</p>