+3  A: 

Use Contains:

int[] ids = { 1, 2, 3, 4, 5};

var query = db.myTable.Where(item => ids.Contains(item.ID));

or in query syntax:

int[] ids = { 1, 2, 3, 4, 5};

var query = from item in db.myTable
            where ids.Contains(item.ID)
            select item;
Jon Skeet
Thanks a lot...
Muhammad Akhtar
A: 

I think answer lies somewhere along these lines...

Array a = {1,2,3,4,5}

...WHERE a.Contains(ID)
Peter Perháč
and of course, Jon Skeet gives the best answer. And he's FIRST! I wonder how he does it, really. :-)
Peter Perháč
+1  A: 

This is already answered in http://stackoverflow.com/questions/857973/linq-to-entities-sql-in-clause.

Yves M.