Without the where Application in ('AAA') this looks pretty simple:
from t1 in db.Table1s where db.Table2s.Select(t2 => t2.TC).Contains(t1.TC) from t1 in db.Table1s
UPDATE (how wrong I was!)
List<string> myCollection = new List<string> { "AAA" }; from t1 in db.Table1s where db.Table2s.Where(t2 => myCollection.Contains(t2.Application)).Select(t2 => t2.TC).Contains(t1.TC) from t1 in db.Table1s
should work with collections in code.
source share