If I get what you are trying to do
from this sample SQL
SELECT *
FROM sampleTable
WHERE id IN (1,2,3,4,7,9)
into LINQ
int[] flags = new int[] {1,2,3,4,7,9};
list<int> data =new list<int>() {1,2,3,4,5,6,7,8,9,0};
var results = from val in data where flags.Contains(val) == true select val;
</int></int>
If I am wrong please expand on your question so that we can help.