title: Convert "The LINQ expression could not be translated" warning into an error
body: <p>I was looking at my logs recently, and I noticed that one of my queries was causing a warning that said "The LINQ expression '{expression}' could not be translated and will be evaluated locally." This is because of a mistake that I made in my query expression.</p>
  
  <p>I was able to fix this issue without too much trouble. My question is: How can I detect this situation in the future without manually looking at the logs?</p>
  
  <p>Two possible solutions (neither of which I know how to implement):</p>
  
  <ul>
  <li>Change the warning into an error </li>
  <li>Write a test that detects the problem. I currently have tests that use an in memory database to test other aspects of the query.</li>
  </ul>
  
  <p>My goal is to be able to prevent a mistake like this from accidentally slipping into production.</p>