title: Grouping records using LINQ method syntax
body: <p>I'm trying to find a way to group records by date (not taking into account time) using the LINQ method syntax but only select one instance of each record (which is ItemId within the model)</p>
  
  <p>My simple query is as follows:</p>
  
  <pre><code>range1.Count(x =&gt; ((x.OpenedDate &gt;= todayFirst) &amp;&amp; (x.OpenedDate &lt;= todayLast))
  </code></pre>
  
  <p>How could I count the unique records within this range by <code>ItemId</code>?</p>