Class SqlPredicate.Like
public sealed class SqlPredicate.Like : SqlPredicate.BaseNotExpr, ISqlPredicate, IQueryElement
- Inheritance
-
SqlPredicate.Like
- Implements
- Inherited Members
- Extension Methods
Constructors
Like(ISqlExpression, bool, ISqlExpression, ISqlExpression?, string?)
public Like(ISqlExpression exp1, bool isNot, ISqlExpression exp2, ISqlExpression? escape, string? functionName = null)
Parameters
exp1ISqlExpressionisNotboolexp2ISqlExpressionescapeISqlExpressionfunctionNamestring
Properties
ElementType
AST node type.
public override QueryElementType ElementType { get; }
Property Value
Escape
public ISqlExpression? Escape { get; }
Property Value
Expr2
public ISqlExpression Expr2 { get; }
Property Value
FunctionName
public string? FunctionName { get; }
Property Value
Methods
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
WritePredicate(QueryElementTextWriter)
protected override void WritePredicate(QueryElementTextWriter writer)
Parameters
writerQueryElementTextWriter