Table of Contents

Class AndOrPredicate

Namespace
Breeze.Core
Assembly
Breeze.Core.dll

A where clause joining two or more predicates with and or or.

public class AndOrPredicate : BasePredicate
Inheritance
AndOrPredicate
Inherited Members

Constructors

AndOrPredicate(Operator, params BasePredicate[])

Join predicates with a boolean connective.

public AndOrPredicate(Operator op, params BasePredicate[] predicates)

Parameters

op Operator

Either And or Or.

predicates BasePredicate[]

The predicates to join.

AndOrPredicate(Operator, IEnumerable<BasePredicate>)

Join predicates with a boolean connective.

public AndOrPredicate(Operator op, IEnumerable<BasePredicate> predicates)

Parameters

op Operator

Either And or Or.

predicates IEnumerable<BasePredicate>

The predicates to join.

Properties

Predicates

The predicates being joined.

public IEnumerable<BasePredicate> Predicates { get; }

Property Value

IEnumerable<BasePredicate>

Methods

ToExpression(ParameterExpression)

Combine the joined predicates into one expression with AndAlso or OrElse.

public override Expression ToExpression(ParameterExpression paramExpr)

Parameters

paramExpr ParameterExpression

The query's lambda parameter.

Returns

Expression

An expression of type bool.

Exceptions

Exception

The operator is neither and nor or.

Validate(Type)

Validate every joined predicate against the entity type.

public override void Validate(Type entityType)

Parameters

entityType Type

The type the query returns.