title: MVC data annotations and templates
body: <p>In this MVC scaffold code I understand a template is being used and I can define my own templates.
  Also, the data annotations on the object sent to the view are being taken into account.</p>
  
  <p>But what is modelItem?</p>
  
  <pre><code>@foreach (var item in Model) {
      &lt;tr&gt;
          &lt;td&gt;
              @Html.DisplayFor(modelItem =&gt; item.ReferenceNum)
          &lt;/td&gt;
  </code></pre>