title: How to get a user matching a role
body: <p>I have a bunch of users and each user can belong to multiple roles.</p>
  
  <p>I was trying to write some code to get the users who belong to a certain area and have a particular role.</p>
  
  <p>I came up with:</p>
  
  <pre><code>_db.Users.Where(
      x =&gt; x.Roles.Contains(n =&gt; n.Name == "Some Role Name")
      &amp;&amp; x.AreaId == areaId);
  </code></pre>
  
  <p>This doesn't work though. Does anyone know where I'm going wrong, and how I might fix it?</p>