Class SqlSearchCondition
public sealed class SqlSearchCondition : SqlExpressionBase, ISqlExpression, IEquatable<ISqlExpression>, ISqlPredicate, IQueryElement
- Inheritance
-
objectSqlSearchCondition
- Implements
- Inherited Members
- Extension Methods
-
QueryVisitorExtensions.Find<TContext>(IQueryElement?, TContext, Func<TContext, IQueryElement, bool>)
Constructors
SqlSearchCondition(bool, bool?)
public SqlSearchCondition(bool isOr = false, bool? canBeUnknown = null)
Parameters
SqlSearchCondition(bool, bool?, ISqlPredicate)
public SqlSearchCondition(bool isOr, bool? canBeUnknown, ISqlPredicate predicate)
Parameters
isOrboolcanBeUnknownbool?predicateISqlPredicate
SqlSearchCondition(bool, bool?, ISqlPredicate, ISqlPredicate)
public SqlSearchCondition(bool isOr, bool? canBeUnknown, ISqlPredicate predicate1, ISqlPredicate predicate2)
Parameters
isOrboolcanBeUnknownbool?predicate1ISqlPredicatepredicate2ISqlPredicate
SqlSearchCondition(bool, bool?, IEnumerable<ISqlPredicate>)
public SqlSearchCondition(bool isOr, bool? canBeUnknown, IEnumerable<ISqlPredicate> predicates)
Parameters
isOrboolcanBeUnknownbool?predicatesIEnumerable<ISqlPredicate>
Properties
CanReturnUnknown
public bool? CanReturnUnknown { get; }
Property Value
- bool?
ElementType
AST node type.
public override QueryElementType ElementType { get; }
Property Value
IsAnd
public bool IsAnd { get; set; }
Property Value
IsOr
public bool IsOr { get; set; }
Property Value
Precedence
public override int Precedence { get; }
Property Value
Predicates
public List<ISqlPredicate> Predicates { get; }
Property Value
SystemType
public override Type SystemType { get; }
Property Value
Methods
Accept(QueryElementVisitor)
Visitor support.
public override IQueryElement Accept(QueryElementVisitor visitor)
Parameters
visitorQueryElementVisitor
Returns
Add(ISqlPredicate)
public SqlSearchCondition Add(ISqlPredicate predicate)
Parameters
predicateISqlPredicate
Returns
AddRange(IEnumerable<ISqlPredicate>)
public SqlSearchCondition AddRange(IEnumerable<ISqlPredicate> predicates)
Parameters
predicatesIEnumerable<ISqlPredicate>
Returns
CanBeNullable(NullabilityContext)
public override bool CanBeNullable(NullabilityContext nullability)
Parameters
nullabilityNullabilityContext
Returns
CanBeUnknown(NullabilityContext, bool)
Returns true if predicate could be evaluated to UNKNOWN.
public bool CanBeUnknown(NullabilityContext nullability, bool withoutUnknownErased)
Parameters
nullabilityNullabilityContextwithoutUnknownErasedbool
Returns
CanInvert(NullabilityContext)
public bool CanInvert(NullabilityContext nullability)
Parameters
nullabilityNullabilityContext
Returns
Deconstruct(out List<ISqlPredicate>)
public void Deconstruct(out List<ISqlPredicate> predicates)
Parameters
predicatesList<ISqlPredicate>
Equals(ISqlExpression, Func<ISqlExpression, ISqlExpression, bool>)
public override bool Equals(ISqlExpression other, Func<ISqlExpression, ISqlExpression, bool> comparer)
Parameters
otherISqlExpressioncomparerFunc<ISqlExpression, ISqlExpression, bool>
Returns
Equals(ISqlPredicate, Func<ISqlExpression, ISqlExpression, bool>)
public bool Equals(ISqlPredicate other, Func<ISqlExpression, ISqlExpression, bool> comparer)
Parameters
otherISqlPredicatecomparerFunc<ISqlExpression, ISqlExpression, bool>
Returns
GetElementHashCode()
public override int GetElementHashCode()
Returns
Invert(NullabilityContext)
public ISqlPredicate Invert(NullabilityContext nullability)
Parameters
nullabilityNullabilityContext
Returns
ToString(QueryElementTextWriter)
Generates debug text representation of AST node.
public override QueryElementTextWriter ToString(QueryElementTextWriter writer)
Parameters
writerQueryElementTextWriter