LINQ的IN:
var queryResult = from p in db.Products where (new int?[] {1,2}).Contains(p.CategoryID) select p;
LINQ的NOT IN:
var queryResult = from p in db.Products where ! (new int?[] {1,2}).Contains(p.CategoryID) select p;