title: Error when display view
body: <p>When I compile my program I have this error:</p>
  
  <blockquote>
    <p>'System.Collections.Generic.ICollection' does not
    contain a definition for 'WIE_Ilosc' and no extension method
    'WIE_Ilosc' accepting a first argument of type
    'System.Collections.Generic.ICollection' could be
    found (are you missing a using directive or an assembly reference?)</p>
  </blockquote>
  
  <p>What must I change in my code to make it work correctly?</p>
  
  <p>my view:</p>
  
  <pre><code>@model List&lt;Webb.Models.Faktury&gt;
  @{
      Layout = null;
  }
  &lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;h2&gt;Faktura VAT&lt;/h2&gt;
      &lt;p&gt;
          Oryginal&lt;/p&gt;
      &lt;table width="100%"&gt;
          &lt;tr&gt;
              &lt;td&gt;ID&lt;/td&gt;
              &lt;td&gt;Data S.&lt;/td&gt;
              &lt;td&gt;Numer&lt;/td&gt;
          &lt;/tr&gt;
          @foreach (var item in Model)
          {
              &lt;tr&gt;
                  &lt;td&gt;@item.FAK_Id&lt;/td&gt;
                  &lt;td&gt;@item.FAK_DataS&lt;/td&gt;
                  &lt;td&gt;@item.Firma.FIR_Rachunek&lt;/td&gt;
                  &lt;td&gt;@item.Wierszes.WIE_Ilosc&lt;/td&gt;
              &lt;/tr&gt;
          }
      &lt;/table&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>my controller:</p>
  
  <pre><code>public ActionResult Reports(int? id)
          {
              // Setup sample model
              var pro = (from a in db.Fakturies
                         join b in db.Wierszes on a.FAK_Id equals b.WIE_Fkid
                         join c in db.Produkties on b.WIE_Pid equals c.PRO_Id
                         select a);
  
              pro = pro.Where(a =&gt; a.FAK_Id == id);
  
              if (Request.QueryString["format"] == "pdf")
                  return new PdfResult(pro.ToList(), "Reports");
  
              return View(pro);
          }
  </code></pre>
  
  <p>Part of model:</p>
  
  <pre><code>public Faktury()
          {
              this.Wierszes = new HashSet&lt;Wiersze&gt;();
          }
       .
       .
       .
       .
  
          public virtual ICollection&lt;Wiersze&gt; Wierszes { get; set; }
          public virtual Firma Firma { get; set; }
          public virtual Klienci Klienci { get; set; }
          public virtual Statusy Statusy { get; set; }
      }
  </code></pre>