title: Create one to one relation using code first approch in entitiy framework
body: <p>I have below two classes and i wanted to make a one to one relation between these two entities using Code First approch. Anybody can suggest/help me on how to create ONE to ONE relation between these Patient &amp; Address entities ? Thanks in advance...</p>
  
  <pre><code>public partial class Patient
  {
      public Patient()
      {
          this.Clinicals = new List&lt;Clinical&gt;();
      }
  
      public int PatientId { get; set; }
      public string MaritalStatus { get; set; }
      public Nullable&lt;System.DateTime&gt; ModifiedDate { get; set; }
      public virtual ICollection&lt;Clinical&gt; Clinicals { get; set; }
      [Required]
      public virtual Address Address { get; set; }
  }
  
  
  public partial class Address
  {        
      public int AddressId { get; set; }
      [ForeignKey("Patient")]
      public int PatientId { get; set; }
      public string AddressLine1 { get; set; }
      public string State { get; set; }
      public Nullable&lt;System.DateTime&gt; ModifiedDate { get; set; }
      public virtual Patient Patient { get; set; }
  }
  </code></pre>