title: Should I define `foreign key Id` property in addition to the corresponding `navigation property`?
body: <p>I found these entities in one of Microsoft tutorials:</p>
  
  <pre><code>public class Enrollment
  {
      public int Id{ get; set; }
  
      public int StudentId { get; set; }
      public Student Student { get; set; }
  }
  
  public class Student
  {
      public int Id { get; set; }
  
      public ICollection&lt;Enrollment&gt; Enrollments { get; set; }
  }
  </code></pre>
  
  <p>Do I really need to define <code>StudentId</code> property?</p>
  
  <p>How the case will differ in case of different types of relationshipts? for example <code>one-one</code> and <code>one-many</code>?</p>
  
  <h1>UPDATE:</h1>
  
  <p>In this link <a href="http://www.learnentityframeworkcore.com/relationships" rel="noreferrer">http://www.learnentityframeworkcore.com/relationships</a> we can see that in One-Many and Many-Many, they did not define the Id foreign key property, but in One-One, they did. Why is that?</p>