Class SqlPredicate.IsTrue
'[NOT] Expr1 IS TRUE' predicate.
public sealed class SqlPredicate.IsTrue : SqlPredicate.BaseNotExpr, ISqlPredicate, IQueryElement
- Inheritance
-
objectSqlPredicate.IsTrue
- Implements
- Inherited Members
- Extension Methods
Constructors
IsTrue(ISqlExpression, ISqlExpression, ISqlExpression, bool?, bool)
public IsTrue(ISqlExpression exp1, ISqlExpression trueValue, ISqlExpression falseValue, bool? withNull, bool isNot)
Parameters
exp1ISqlExpressiontrueValueISqlExpressionfalseValueISqlExpressionwithNullbool?isNotbool
Properties
ElementType
AST node type.
public override QueryElementType ElementType { get; }
Property Value
FalseValue
public ISqlExpression FalseValue { get; set; }
Property Value
TrueValue
public ISqlExpression TrueValue { get; set; }
Property Value
WithNull
public bool? WithNull { get; }
Property Value
- bool?
Methods
Accept(QueryElementVisitor)
Visitor support.
public override IQueryElement Accept(QueryElementVisitor visitor)
Parameters
visitorQueryElementVisitor
Returns
CanBeUnknown(NullabilityContext, bool)
Returns true if predicate could be evaluated to UNKNOWN.
public override bool CanBeUnknown(NullabilityContext nullability, bool withoutUnknownErased)
Parameters
nullabilityNullabilityContextwithoutUnknownErasedbool
Returns
Equals(ISqlPredicate, Func<ISqlExpression, ISqlExpression, bool>)
public override bool Equals(ISqlPredicate other, Func<ISqlExpression, ISqlExpression, bool> comparer)
Parameters
otherISqlPredicatecomparerFunc<ISqlExpression, ISqlExpression, bool>
Returns
GetElementHashCode()
public override int GetElementHashCode()
Returns
Invert(NullabilityContext)
public override ISqlPredicate Invert(NullabilityContext nullability)
Parameters
nullabilityNullabilityContext
Returns
Reduce(NullabilityContext, bool)
public ISqlPredicate Reduce(NullabilityContext nullability, bool isInsidePredicate)
Parameters
nullabilityNullabilityContextisInsidePredicateboolEnables generation of addtional conversion of UNKNOWN to FALSE for nested predicates when non-nullable result.
Returns
WritePredicate(QueryElementTextWriter)
protected override void WritePredicate(QueryElementTextWriter writer)
Parameters
writerQueryElementTextWriter