Table of Contents

Class SqlCondition

Namespace
LinqToDB.SqlQuery
Assembly
linq2db.dll
public class SqlCondition : IQueryElement
Inheritance
SqlCondition
Implements
Extension Methods

Constructors

SqlCondition(bool, ISqlPredicate)

public SqlCondition(bool isNot, ISqlPredicate predicate)

Parameters

isNot bool
predicate ISqlPredicate

SqlCondition(bool, ISqlPredicate, bool)

public SqlCondition(bool isNot, ISqlPredicate predicate, bool isOr)

Parameters

isNot bool
predicate ISqlPredicate
isOr bool

Properties

CanBeNull

public bool CanBeNull { get; }

Property Value

bool

ElementType

public QueryElementType ElementType { get; }

Property Value

QueryElementType

IsNot

public bool IsNot { get; set; }

Property Value

bool

IsOr

public bool IsOr { get; set; }

Property Value

bool

Precedence

public int Precedence { get; }

Property Value

int

Predicate

public ISqlPredicate Predicate { get; set; }

Property Value

ISqlPredicate

Methods

Deconstruct(out bool, out ISqlPredicate, out bool)

public void Deconstruct(out bool isNot, out ISqlPredicate predicate, out bool isOr)

Parameters

isNot bool
predicate ISqlPredicate
isOr bool

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

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

Parameters

other SqlCondition
comparer Func<ISqlExpression, ISqlExpression, bool>

Returns

bool