I have two IQueryable<> lists. Say one is filled with objects of Class Bottle and the other is of type Cup.
Both classes have a Guid called DrinkID.
How would I take my Bottle list and find all the items in the Cup list that have a DrinkID that is NOT in the Bottle list?
I am looking for something like this:
var bottles = _context.AllBottles;
var cups = _context.AllCups.Where(cup => cup.DrinkID not in bottles.DrinkID);
I am using Linq to Entities.