Linq not contains dynamic query

.net, c#, linq

Solution

just use `!` before the contains condition. Like

 var myProducts = from p in products
                  where !productList.Contains(p.ID)
                  select p;

Problem

Possible Duplicate: Linq to SQL “not like” operator How can I write a dynamic linq query with using not contains? I use `.Contains()` instead of like. But what should I use instead of `not like`?

Original source

Related problems