title: LINQ to Entities does not recognize the method exception
body: <p>I have some thing like this </p>
  
  <pre><code>SecuritySearcher sc = new SecuritySearcher();
  Dictionary&lt;string, bool&gt; groupsMap = 
      sc.GetUserGroupMappings(domainName, currentUser, distGroups.ToList());
  
  IQueryable&lt;HotelTravel&gt; groupq = 
      (from hotel in qHs
      join hp in qHps on hotel.HotelTravelId equals hp.HotelTravelId
      where !string.IsNullOrEmpty(hp.GroupName)
         &amp;&amp; groupsMap.ContainsKey(hp.GroupName) 
         &amp;&amp; groupsMap[hp.GroupName] == true
      select hotel);
  </code></pre>
  
  <p>While executing Linq statement it is throwing exception saying 
  LINQ to Entities does not recognize the method 'Boolean ContainsKey(System.String)' method, and this method cannot be translated into a store expression.</p>