title: Manually loading navigation properties in MVC 6
body: <p>What is the best way to manually load navigation property in MVC 6?</p>
  
  <pre class="lang-cs prettyprint-override"><code>[HttpPost]
  [ValidateAntiForgeryToken]
  public async Task&lt;IActionResult&gt; Edit(Reservation reservation, bool ignoreConflicts = false)
  {
      int id = reservation.ItemID;  // correct item ID
      Item item = reservation.Item; // null
  }
  </code></pre>
  
  <p>In this example, when user submits a form, I get a Reservation object with all navigation properties set to null. </p>
  
  <p>The best way I can think of is manually looking up the Item DbSet to find the item with matching ID and assigning it to the navigation property. </p>