title: How to fill NotMapped property with count in Linq?
body: <p>I have added the following property to PassAllocations class :</p>
  
  <pre><code>[NotMapped]
  public int PendingForApprovalCount { get; set; }
  
   var passAllocations = db.PassAllocations.Include(p =&gt; p.PassRule)
  .Where(p =&gt; p.CompanyID == company.CompanyID).ToList();
  </code></pre>
  
  <p>I am trying to fill each <code>PendingForApprovalCount</code> property in list passAllocations with result of <code>db.PassLinkings.Where(p =&gt; p.PassAllocationID == parentid and p.status="Pending").ToList()</code></p>
  
  <p>Where 'parentid' is <code>PassAllocationID</code> in each <code>passAllocations</code> list</p>