Table of Contents

Class SqlPlaceholderExpression

Namespace
LinqToDB.Internal.Expressions
Assembly
linq2db.dll
public sealed class SqlPlaceholderExpression : Expression, IEquatable<SqlPlaceholderExpression>
Inheritance
object
SqlPlaceholderExpression
Implements
Inherited Members
Extension Methods

Constructors

SqlPlaceholderExpression(SelectQuery?, ISqlExpression, Expression, Type?, string?, int?, Expression?)

public SqlPlaceholderExpression(SelectQuery? selectQuery, ISqlExpression sql, Expression path, Type? convertType = null, string? alias = null, int? index = null, Expression? trackingPath = null)

Parameters

selectQuery SelectQuery
sql ISqlExpression
path Expression
convertType Type
alias string
index int?
trackingPath Expression

Properties

Alias

public string? Alias { get; set; }

Property Value

string

ConvertType

public Type ConvertType { get; }

Property Value

Type

Index

public int? Index { get; }

Property Value

int?

NodeType

Gets the node type of this Expression.

public override ExpressionType NodeType { get; }

Property Value

ExpressionType

One of the ExpressionType values.

Path

public Expression Path { get; }

Property Value

Expression

SelectQuery

public SelectQuery? SelectQuery { get; }

Property Value

SelectQuery

Sql

public ISqlExpression Sql { get; }

Property Value

ISqlExpression

TrackingPath

public Expression? TrackingPath { get; }

Property Value

Expression

Type

Gets the static type of the expression that this Expression represents.

public override Type Type { get; }

Property Value

Type

The Type that represents the static type of the expression.

Methods

Accept(ExpressionVisitor)

Dispatches to the specific visit method for this node type. For example, MethodCallExpression calls the VisitMethodCall(MethodCallExpression).

protected override Expression Accept(ExpressionVisitor visitor)

Parameters

visitor ExpressionVisitor

The visitor to visit this node with.

Returns

Expression

The result of visiting this node.

Equals(SqlPlaceholderExpression?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(SqlPlaceholderExpression? other)

Parameters

other SqlPlaceholderExpression

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

MakeNotNullable()

public SqlPlaceholderExpression MakeNotNullable()

Returns

SqlPlaceholderExpression

MakeNullable()

public SqlPlaceholderExpression MakeNullable()

Returns

SqlPlaceholderExpression

ToString()

Returns a textual representation of the Expression.

public override string ToString()

Returns

string

A textual representation of the Expression.

WithAlias(string?)

public SqlPlaceholderExpression WithAlias(string? alias)

Parameters

alias string

Returns

SqlPlaceholderExpression

WithPath(Expression)

public SqlPlaceholderExpression WithPath(Expression path)

Parameters

path Expression

Returns

SqlPlaceholderExpression

WithSelectQuery(SelectQuery)

public SqlPlaceholderExpression WithSelectQuery(SelectQuery selectQuery)

Parameters

selectQuery SelectQuery

Returns

SqlPlaceholderExpression

WithSql(ISqlExpression)

public SqlPlaceholderExpression WithSql(ISqlExpression sqlExpression)

Parameters

sqlExpression ISqlExpression

Returns

SqlPlaceholderExpression

WithTrackingPath(Expression)

public SqlPlaceholderExpression WithTrackingPath(Expression trackingPath)

Parameters

trackingPath Expression

Returns

SqlPlaceholderExpression

WithType(Type)

public SqlPlaceholderExpression WithType(Type type)

Parameters

type Type

Returns

SqlPlaceholderExpression