Table of Contents

Class UnaryPredicate

Namespace
Breeze.Core
Assembly
Breeze.Core.dll

A where clause that negates another predicate.

public class UnaryPredicate : BasePredicate
Inheritance
UnaryPredicate
Inherited Members

Constructors

UnaryPredicate(Operator, BasePredicate)

Negate a predicate.

public UnaryPredicate(Operator op, BasePredicate predicate)

Parameters

op Operator

The unary operator, i.e. Not.

predicate BasePredicate

The predicate to negate.

Properties

Predicate

The predicate being negated.

public BasePredicate Predicate { get; }

Property Value

BasePredicate

Methods

ToExpression(ParameterExpression)

Build the negation of the inner predicate.

public override Expression ToExpression(ParameterExpression paramExpr)

Parameters

paramExpr ParameterExpression

The query's lambda parameter.

Returns

Expression

An expression of type bool.

Validate(Type)

Validate the negated predicate against the entity type.

public override void Validate(Type entityType)

Parameters

entityType Type

The type the query returns.