Table of Contents

Class SqlExpression

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

Constructors

SqlExpression(string, params ISqlExpression[])

public SqlExpression(string expr, params ISqlExpression[] parameters)

Parameters

expr string
parameters ISqlExpression[]

SqlExpression(string, int, params ISqlExpression[])

public SqlExpression(string expr, int precedence, params ISqlExpression[] parameters)

Parameters

expr string
precedence int
parameters ISqlExpression[]

SqlExpression(Type?, string, params ISqlExpression[])

public SqlExpression(Type? systemType, string expr, params ISqlExpression[] parameters)

Parameters

systemType Type
expr string
parameters ISqlExpression[]

SqlExpression(Type?, string, int, params ISqlExpression[])

public SqlExpression(Type? systemType, string expr, int precedence, params ISqlExpression[] parameters)

Parameters

systemType Type
expr string
precedence int
parameters ISqlExpression[]

SqlExpression(Type?, string, int, SqlFlags, params ISqlExpression[])

public SqlExpression(Type? systemType, string expr, int precedence, SqlFlags flags, params ISqlExpression[] parameters)

Parameters

systemType Type
expr string
precedence int
flags SqlFlags
parameters ISqlExpression[]

Properties

CanBeNull

public bool CanBeNull { get; set; }

Property Value

bool

ElementType

public QueryElementType ElementType { get; }

Property Value

QueryElementType

Expr

public string Expr { get; }

Property Value

string

Flags

public SqlFlags Flags { get; }

Property Value

SqlFlags

IsAggregate

public bool IsAggregate { get; }

Property Value

bool

IsPredicate

public bool IsPredicate { get; }

Property Value

bool

IsPure

public bool IsPure { get; }

Property Value

bool

IsWindowFunction

public bool IsWindowFunction { get; }

Property Value

bool

Parameters

public ISqlExpression[] Parameters { get; }

Property Value

ISqlExpression[]

Precedence

public int Precedence { get; }

Property Value

int

SystemType

public Type? SystemType { get; }

Property Value

Type

Methods

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.

NeedsEqual(IQueryElement)

public static bool NeedsEqual(IQueryElement ex)

Parameters

ex IQueryElement

Returns

bool