Table of Contents

Class Precedence

Namespace
LinqToDB.SqlQuery
Assembly
linq2db.dll
public sealed class Precedence
Inheritance
object
Precedence
Extension Methods

Fields

Additive

public const int Additive = 60

Field Value

int

Bitwise

public const int Bitwise = 40

Field Value

int

Comparison

public const int Comparison = 50

Field Value

int

Concatenate

Conservative low-binding precedence for SQL concat (|| / CONCAT(...)). Real per-provider || precedence varies (e.g. SQLite documents it between unary and multiplicative; Oracle places it at additive level). Setting it below every other operator forces parentheses around concat chains whenever they're nested in another operator — defensive over that variance.

public const int Concatenate = 5

Field Value

int

LogicalConjunction

public const int LogicalConjunction = 20

Field Value

int

LogicalDisjunction

public const int LogicalDisjunction = 10

Field Value

int

LogicalNegation

public const int LogicalNegation = 30

Field Value

int

Multiplicative

public const int Multiplicative = 80

Field Value

int

Primary

public const int Primary = 100

Field Value

int

Subtraction

public const int Subtraction = 70

Field Value

int

Unary

public const int Unary = 90

Field Value

int

Unknown

public const int Unknown = 0

Field Value

int