title: Why does Select return a boolean?
body: <p>I'm working with Entity Framework 6 in MVC 5.</p>
  
  <p>I have the following method:</p>
  
  <pre class="lang-cs prettyprint-override"><code>[HttpPost]
  public ActionResult UpdateDetails(ApplicationUser applicationUser)
  {
      var context = new ApplicationDbContext();
      var user = context.Users.Select(x =&gt; x.UserName == applicationUser.UserName).FirstOrDefault();
  
  //etc etc
  }
  </code></pre>
  
  <p>Users is an <code>IDbSet&lt;ApplicationUser&gt;</code>.</p>
  
  <p>Why am I getting a bool back from the Select method?</p>
  
  <p>My expectation would be to get an <code>ApplicationUser</code> object back. Why isn't this the case?</p>
  
  <p>Thanks</p>