title: linq to entity framework: use dictionary in query
body: <p>I have:</p>
  
  <pre><code>Dictionary&lt;int, List&lt;int&gt;&gt; dict = new ...
  var a = SomeEntity.Where(f =&gt; dict[f.key].Contains(f.someValue)) 
  </code></pre>
  
  <p>this produces error</p>
  
  <pre><code> LINQ to Entities does not recognize the method 'System.Collections.Generic.List`1[System.Int32] get_Item(Int32)' method
  </code></pre>
  
  <p>while with lists it works:</p>
  
  <pre><code>List&lt;int&gt; l = new ...
  var a = SomeEntity.Where(f =&gt; l.Contains(f.someValue))
  </code></pre>
  
  <p>So is this limitation of linq to EF or am I missing something?</p>