title: Html.DisplayNameFor() relation through entity framework
body: <p>I'm looping through each item in a model, and I display the name and data for several of the properties. This works fine.</p>
  
  <pre><code>@foreach (var item in Model)
  {
     &lt;div class="Ticket"&gt;
      &lt;h3&gt;
      @item.Title
      &lt;/h3&gt;
  
      @Html.DisplayNameFor(model =&gt; model.DateCreated)
      @Html.DisplayFor(modelItem =&gt; item.DateCreated) 
  </code></pre>
  
  <p>Since the model has an associated DataAnnotation which provide formatting clues, this ends up outputting someting like "Created 1/1/1". Good so far.</p>
  
  <p>What I'd also like to do is display the [formatted] name for an item that is associated with the model through the entity framework. I can display the data parameter using the code...</p>
  
  <pre><code>    @Html.DisplayFor(modelItem =&gt; item.LinkedEntity.Data)
  </code></pre>
  
  <p>but I'm unable to figure out the syntax to display the associated label. Any ideas?</p>