Table of Contents

Class SqlPredicate.IsTrue

Namespace
LinqToDB.SqlQuery
Assembly
linq2db.dll
public class SqlPredicate.IsTrue : SqlPredicate.BaseNotExpr, ISqlPredicate, IQueryElement, ISqlExpressionWalkable, IInvertibleElement
Inheritance
SqlPredicate.IsTrue
Implements
Inherited Members
Extension Methods

Constructors

IsTrue(ISqlExpression, ISqlExpression, ISqlExpression, bool?, bool, bool)

public IsTrue(ISqlExpression exp1, ISqlExpression trueValue, ISqlExpression falseValue, bool? withNull, bool isNot, bool optimizeNull)

Parameters

exp1 ISqlExpression
trueValue ISqlExpression
falseValue ISqlExpression
withNull bool?
isNot bool
optimizeNull bool

Properties

ElementType

public override QueryElementType ElementType { get; }

Property Value

QueryElementType

FalseValue

public ISqlExpression FalseValue { get; set; }

Property Value

ISqlExpression

OptimizeNull

public bool OptimizeNull { get; set; }

Property Value

bool

TrueValue

public ISqlExpression TrueValue { get; set; }

Property Value

ISqlExpression

WithNull

public bool? WithNull { get; }

Property Value

bool?

Methods

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

Invert()

public override IQueryElement Invert()

Returns

IQueryElement

Reduce()

public ISqlPredicate Reduce()

Returns

ISqlPredicate

ToString(StringBuilder, Dictionary<IQueryElement, IQueryElement>)

protected override void ToString(StringBuilder sb, Dictionary<IQueryElement, IQueryElement> dic)

Parameters

sb StringBuilder
dic Dictionary<IQueryElement, IQueryElement>