title: Compare DateTime in EF Core Linq Query
body: <p>I am using .NETCore and EF Core in my project. I am unable to query items with expressions using DateTimes.</p>
  
  <pre><code>return _context.table
         .Where( x=&gt; x.CPULoad &gt; 90 &amp;&amp; X.Date &gt;= DateTime.Now.AddMinutes(-5));
  </code></pre>
  
  <p>The CPULoad works perfect but the datetime comparions outputs the below.</p>
  
  <pre><code>The LINQ expression '(([x].Date &gt;= DateTime.Now.AddMinutes(-5))' could not be translated and will be evaluated locally.
  </code></pre>
  
  <p>Can someone explain what i'm doing wrong? Thanks in advance!</p>