Table of Contents

Class SqlBinaryExpression

Namespace
LinqToDB.SqlQuery
Assembly
linq2db.dll
[Serializable]
public class SqlBinaryExpression : ISqlExpression, IQueryElement, IEquatable<ISqlExpression>, ISqlExpressionWalkable
Inheritance
SqlBinaryExpression
Implements
Extension Methods

Constructors

SqlBinaryExpression(Type, ISqlExpression, string, ISqlExpression)

public SqlBinaryExpression(Type systemType, ISqlExpression expr1, string operation, ISqlExpression expr2)

Parameters

systemType Type
expr1 ISqlExpression
operation string
expr2 ISqlExpression

SqlBinaryExpression(Type, ISqlExpression, string, ISqlExpression, int)

public SqlBinaryExpression(Type systemType, ISqlExpression expr1, string operation, ISqlExpression expr2, int precedence)

Parameters

systemType Type
expr1 ISqlExpression
operation string
expr2 ISqlExpression
precedence int

Properties

CanBeNull

public bool CanBeNull { get; }

Property Value

bool

ElementType

public QueryElementType ElementType { get; }

Property Value

QueryElementType

Expr1

public ISqlExpression Expr1 { get; }

Property Value

ISqlExpression

Expr2

public ISqlExpression Expr2 { get; }

Property Value

ISqlExpression

Operation

public string Operation { get; }

Property Value

string

Precedence

public int Precedence { get; }

Property Value

int

SqlText

public string SqlText { get; }

Property Value

string

SystemType

public Type SystemType { get; }

Property Value

Type

Methods

Deconstruct(out ISqlExpression, out string, out ISqlExpression)

public void Deconstruct(out ISqlExpression expr1, out string operation, out ISqlExpression expr2)

Parameters

expr1 ISqlExpression
operation string
expr2 ISqlExpression

Deconstruct(out Type, out ISqlExpression, out string, out ISqlExpression)

public void Deconstruct(out Type systemType, out ISqlExpression expr1, out string operation, out ISqlExpression expr2)

Parameters

systemType Type
expr1 ISqlExpression
operation string
expr2 ISqlExpression

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

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

Parameters

other ISqlExpression
comparer Func<ISqlExpression, ISqlExpression, bool>

Returns

bool

GetHashCode()

Serves as a hash function for a particular type.

public override int GetHashCode()

Returns

int

A hash code for the current object.