title: One to One EntityTypeConfiguration using EF 6.0 and code first
body: <p>I want to create a one to one relationship using EF 6, code first and fluent configuration. I want the navigation property only in the root. Is this possible? If so, how do I configurate my <code>EntityTypeConfigurations</code>? Do I need to change <code>SalarayId</code> to <code>EmployeeId</code>?</p>
  <pre class="lang-c# prettyprint-override"><code>public class Employee
  {
      public int EmployeeId { get; set; }
      public string Name { get; set; }
  
      public virtual Salary Salary {get; set; }
  }
  
  public class Salary
  {
      public int SalaryId { get; set; }
      public double Amount { get; set; }
  }
  
  public class EmployeeConfiguration : EntityTypeConfiguration&lt;Employee&gt;
  {
      public EmployeeConfiguration()
      {
          HasKey(e =&gt; e.EmployeeId);
      }
  }
  
  public class SalaryConfiguration : EntityTypeConfiguration&lt;Salary&gt;
  {
      public SalaryConfiguration()
      {
          HasKey(s =&gt; s.SalaryId);
      }
  }
  </code></pre>