Method OrElse
OrElse<T>(Expression<Func<T, bool>>, Expression<Func<T, bool>>)
Combines two expressions using the logical OR operator.
public static Expression<Func<T, bool>> OrElse<T>(this Expression<Func<T, bool>> expr1, Expression<Func<T, bool>> expr2)
Parameters
expr1Expression<Func<T, bool>>The first expression.
expr2Expression<Func<T, bool>>The second expression.
Returns
- Expression<Func<T, bool>>
The combined expression.
Type Parameters
TThe type of the parameter in the expressions.