Please, explain me how to use Experssion.Or() in FindAll function.
for example i have 2 conditions - Expression.Like("Text", "%coolstuff%") and
Expression.Eq("FromInternet", false)
how to use them together via "or"?
Please, explain me how to use Experssion.Or() in FindAll function.
for example i have 2 conditions - Expression.Like("Text", "%coolstuff%") and
Expression.Eq("FromInternet", false)
how to use them together via "or"?
Try this:
// ...
Expression.Or(
Expression.Like("text", "%arbitrary%"),
Expression.Eq("FromInternet", false)
)
// ...