Table of Contents

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

T

The 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

left Specification<T>

The first specification.

right Specification<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.