title: LINQ to Entities does not recognize the method Int32 get_Item(Int32)
body: <p>I am a newbie about entity framework and linq. My query is like that </p>
  
  <pre><code>var query = (from d in db.MYTABLE
               where d.RELID.Equals(myInts[0])
               select d.ID).Distinct();
  
  List&lt;int?&gt; urunidleri = query.ToList();
  </code></pre>
  
  <p>When i execute this code, i got the error message "LINQ to Entities does not recognize the method Int32 get_Item(Int32)". How can i solve my problem ? </p>
  
  <p>Thanks... </p>