Table of Contents

Class SqlPredicate.Exists

Namespace
LinqToDB.Internal.SqlQuery
Assembly
linq2db.dll
public sealed class SqlPredicate.Exists : SqlPredicate, ISqlPredicate, IQueryElement
Inheritance
SqlPredicate.Exists
Implements
Inherited Members
Extension Methods

Constructors

Exists(bool, SelectQuery)

public Exists(bool isNot, SelectQuery subQuery)

Parameters

isNot bool
subQuery SelectQuery

Properties

ElementType

AST node type.

public override QueryElementType ElementType { get; }

Property Value

QueryElementType

IsNot

public bool IsNot { get; }

Property Value

bool

SubQuery

public SelectQuery SubQuery { get; }

Property Value

SelectQuery

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

CanInvert(NullabilityContext)

public override bool CanInvert(NullabilityContext nullability)

Parameters

nullability NullabilityContext

Returns

bool

Deconstruct(out bool, out SelectQuery)

public void Deconstruct(out bool isNot, out SelectQuery subQuery)

Parameters

isNot bool
subQuery SelectQuery

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

Modify(SelectQuery)

public void Modify(SelectQuery subQuery)

Parameters

subQuery SelectQuery

WritePredicate(QueryElementTextWriter)

protected override void WritePredicate(QueryElementTextWriter writer)

Parameters

writer QueryElementTextWriter