title: How to select last hour and groupby minute?
body: <p>I want to select data from SQL database using EF, select the last hour and then group by minute.</p>
  
  <pre><code>var result = _dbContext.views
               .Where(x =&gt; x.Id == id &amp;&amp; x.Created  &gt; DateTime.UtcNow.AddHours(-1))
               .OrderBy(x =&gt; x.Created)
               .GroupBy(x=&gt; x.Created.Where({Range is 1 minute}));
  </code></pre>