Table of Contents

Class SqlPredicate.Like

Namespace
LinqToDB.Internal.SqlQuery
Assembly
linq2db.dll
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

exp1 ISqlExpression
isNot bool
exp2 ISqlExpression
escape ISqlExpression
functionName string

Properties

ElementType

AST node type.

public override QueryElementType ElementType { get; }

Property Value

QueryElementType

Escape

public ISqlExpression? Escape { get; }

Property Value

ISqlExpression

Expr2

public ISqlExpression Expr2 { get; }

Property Value

ISqlExpression

FunctionName

public string? FunctionName { get; }

Property Value

string

Methods

CanBeUnknown(NullabilityContext, bool)

Returns true if predicate could be evaluated to UNKNOWN.

public override bool CanBeUnknown(NullabilityContext nullability, bool withoutUnknownErased)

Parameters

nullability NullabilityContext
withoutUnknownErased bool

Returns

bool

Equals(ISqlPredicate, Func<ISqlExpression, ISqlExpression, bool>)

public override bool Equals(ISqlPredicate other, Func<ISqlExpression, ISqlExpression, bool> comparer)

Parameters

other ISqlPredicate
comparer Func<ISqlExpression, ISqlExpression, bool>

Returns

bool

GetElementHashCode()

public override int GetElementHashCode()

Returns

int

Invert(NullabilityContext)

public override ISqlPredicate Invert(NullabilityContext nullability)

Parameters

nullability NullabilityContext

Returns

ISqlPredicate

WritePredicate(QueryElementTextWriter)

protected override void WritePredicate(QueryElementTextWriter writer)

Parameters

writer QueryElementTextWriter