Class UnaryPredicate
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
opOperatorThe unary operator, i.e. Not.
predicateBasePredicateThe predicate to negate.
Properties
Predicate
The predicate being negated.
public BasePredicate Predicate { get; }
Property Value
Methods
ToExpression(ParameterExpression)
Build the negation of the inner predicate.
public override Expression ToExpression(ParameterExpression paramExpr)
Parameters
paramExprParameterExpressionThe 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
entityTypeTypeThe type the query returns.