Class OrSpecification<T>
- Namespace
- KYS.EFCore.Library
- Assembly
- KYS.EFCore.Library.dll
Specification that is satisfied when either of its operands is satisfied.
public sealed class OrSpecification<T> : Specification<T>
Type Parameters
TThe type of the object the specification applies to.
- Inheritance
-
OrSpecification<T>
- Inherited Members
Constructors
OrSpecification(Specification<T>, Specification<T>)
Initializes a new instance of the OrSpecification<T> class.
public OrSpecification(Specification<T> left, Specification<T> right)
Parameters
leftSpecification<T>The first specification.
rightSpecification<T>The second specification.
Methods
ToExpression()
Returns an expression that combines the operands' expressions with OrElse(Expression, Expression).
public override Expression<Func<T, bool>> ToExpression()
Returns
- Expression<Func<T, bool>>
The combined filter criterion.