title: Getting "Unable to evaluate expression" Error, when using Entity Framework
body: <p>I'm using Entity Framework for accessing my database, and I want to get a single row (or let's say the whole table) with the following Code:</p>
  
  <pre><code>using (var db = new dbContext())
  {
      var user= (from o in db.AspNetUsers
                  where o.Email == "email@domain.tld"
                  select o).FirstOrDefault();
  
      var userList = db.AspNetUsers.ToList();
  }
  </code></pre>
  
  <p>But when I add a breakpoint after these two queries, there is only the "Unable to evaluate expression" Error, or a List of these Errors stored in my <code>user</code> and <code>userList</code>. I'm stuck, and can't figure out, why this happens.</p>
  
  <p>I did some research already, and some say it could be the "Code Optimization" of Visual Studio. But I thought, that the Code is not optimized, when you start the App in Debug Mode. Also, I haven't found the option to deactivate the code optimization yet.</p>