title: ASP.NET MVC: How to display a detail from one-to-many related model in a view
body: <p>So basically I have a Post model, which is associated with the user that created it:</p>
  
  <pre><code>public class Post
  {
      public int Id { get; set; }
      [Required]
      public string PostContent { get; set; }
      [Required]
      public DateTime DatePosted { get; set; }
      [Required]
      public string PostTitle { get; set; }
  
      public ApplicationUser ApplicationUser { get; set; }
  }
  </code></pre>
  
  <p>And the ApplicationUser has posts:</p>
  
  <pre><code>public virtual ICollection&lt;Post&gt; Posts { get; set; }
  </code></pre>
  
  <p>So now on the Posts index view page, I just want to show the Email of the ApplicationUser who wrote the post. So the following doesn't work (it just shows blank on the page):</p>
  
  <pre><code>@Html.DisplayFor(modelItem =&gt; item.ApplicationUser.Email)
  </code></pre>
  
  <p>What's the best/easiest way to do this?</p>