title: Select query result to List<int>
body: <p>I have problem to do below query in Entity Framework and also equate the result to List:</p>
  
  <pre><code>select count(*) from user_behave_fact
  where beef_dairy_stat = 'True' and param_id = 2
  group by p_min,p_max
  go
  
  
  using (var db = new J_DBEntities())
  {
      List&lt;int&gt; dry_icc_ctn_mm = db.user_behave_fact.Where(x =&gt; x.beef_dairy_stat == true &amp;&amp; x.param_id == 1)
          .GroupBy(x =&gt; new {x.p_min, x.p_max}).Count();
  }
  </code></pre>