Table of Contents

Class AndSpecification<T>

Namespace
KYS.EFCore.Library
Assembly
KYS.EFCore.Library.dll

Specification that is satisfied when both of its operands are satisfied.

public sealed class AndSpecification<T> : Specification<T>

Type Parameters

T

The type of the object the specification applies to.

Inheritance
AndSpecification<T>
Inherited Members

Constructors

AndSpecification(Specification<T>, Specification<T>)

Initializes a new instance of the AndSpecification<T> class.

public AndSpecification(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 AndAlso(Expression, Expression).

public override Expression<Func<T, bool>> ToExpression()

Returns

Expression<Func<T, bool>>

The combined filter criterion.