I have two tables - \"Customer\" table and \"Blacklist\" customer table. When I blacklist a customer, I put the customerid as a foreign key to Blacklist table.
What
How about something like this:
var subselect = (from b in BlackList select b.CusId).ToList(); var result = from c in Customer where !subselect.Contains(c.CusId) select c;