views:

81

answers:

1

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"?

A: 

Try this:

// ...
Expression.Or(
  Expression.Like("text", "%arbitrary%"),
  Expression.Eq("FromInternet", false)
)
// ...
John Feminella