title: New MVC field not displaying
body: <p>I'm trying to add another column to a table on an existing MVC site by adding the following lines:</p>
  
  <p>Snippet of Model:</p>
  
  <pre><code>public partial class viewUserRecord
  {
      [Display(Name = "Agent ID")]
      public Nullable&lt;int&gt; agentId { get; set; }
  
      ...
      ....
  
      // New code:
      [Display(Name = "Mailing Zip")]
      public string mailingZip { get; set; }
  }
  </code></pre>
  
  <p>View:</p>
  
  <pre><code>&lt;tr role="row"&gt;
       &lt;th class="sorting" tabindex="0" aria-controls="dataTables-example" rowspan="1" colspan="1" aria-label="Rendering engine: activate to sort column ascending"&gt;
               @Html.DisplayNameFor(model =&gt; model.agentId)
       &lt;/th&gt;
  
       ...
       ....
  
  
       &lt;th class="sorting" tabindex="0" aria-controls="dataTables-example" rowspan="1" colspan="1" aria-label="Rendering engine: activate to sort column ascending"&gt;
               @Html.DisplayNameFor(model =&gt; model.mailingZip)
       &lt;/th&gt;
  &lt;/tr&gt;
  
  &lt;tbody&gt;
      @foreach (var item in Model)
      {
          &lt;tr&gt;
             &lt;td&gt;
                @Html.DisplayFor(modelItem =&gt; item.agentId) // debugger shows correct value here
            &lt;/td&gt;
  
            ...
            ....
  
            &lt;td&gt;
                @Html.DisplayFor(modelItem =&gt; item.mailingZip)  // debugger shows NULL here
            &lt;/td&gt;
          &lt;/tr&gt;
       }
  &lt;/tbody&gt;
  </code></pre>
  
  <p>This adds the new column to the table but does not retrieve the relevant data.</p>
  
  <p>The model references a database view <code>viewUserDetails</code> which contains the correct data for the new field, <code>mailingZip</code>,  but debugging through the view shows the contents as <code>NULL</code>.</p>
  
  <p>The <code>Agent ID</code> field displays fine.</p>
  
  <p>I realise I've missed something but have become stumped.</p>