title: How to get parent entity property in child entity with foreign key relation in code first?
body: <p>I have following two entities Doctor(parent) and DoctorPayment(child)</p>
  
  <ol>
  <li><p>one possible way is to take Doctor object in DoctorPayment entity and get through Doctor.Name</p></li>
  <li><p>But I only need DoctorName not whole object in DoctorPayment that should be mapped by DoctorId</p></li>
  </ol>
  
  <p>I have mentioned just few properties of Doctor entity but it have around 50 properties so I don't want to take Doctor object in DoctorPayment</p>
  
  <pre><code>public class Doctor
      {
          public int Id { get; set; }
          public string Name { get; set; }
          public string Designation { get; set; }
          public int ModifiedBy { get; set; }
      }
  
      public class DoctorPayment
      {
          public int Id { get; set; }
          public int DoctorId { get; set; }
          public decimal Amount { get; set; }
          public DateTime Date { get; set; }
          public int ModifiedBy { get; set; }
          public Doctor Doctor { get; set; }      // a possible way to take Doctor object
      }
  </code></pre>