.Where("MyColumn.Contains(@0)", "column_value")
I would like to know the syntax or the correct way to have NOT contains in dynamic linq.
All of these worked for me:
collection.Where("!MyColumn.Contains(@0)", "value");
collection.Where("MyColumn.Contains(@0) = false", "value");
collection.Where("MyColumn.Contains(@0) == false", "value");
I used System.Linq.Dynamic (version 1.0.2) from NuGet.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With