The IN query will get results within the given range

 

SQL

select * from tablename where id in(12,34,56)

Equivalent LINQ TO SQL (VB.NET)

From c In db.tablename Where (New Integer() {12,34,56}).Contains(c.id)

Equivalent LINQ TO SQL (C#)

from c in db.tablenamewhere (new int[] {
12,
34,
56
}).Contains(c.id)