Table of Contents

Class SqlDefaultIfEmptyExpression

Namespace
LinqToDB.Internal.Expressions
Assembly
linq2db.dll
public sealed class SqlDefaultIfEmptyExpression : Expression
Inheritance
object
SqlDefaultIfEmptyExpression
Inherited Members
Extension Methods

Constructors

SqlDefaultIfEmptyExpression(Expression, ReadOnlyCollection<Expression>)

public SqlDefaultIfEmptyExpression(Expression innerExpression, ReadOnlyCollection<Expression> notNullExpressions)

Parameters

innerExpression Expression
notNullExpressions ReadOnlyCollection<Expression>

Properties

CanReduce

Indicates that the node can be reduced to a simpler node. If this returns true, Reduce() can be called to produce the reduced form.

public override bool CanReduce { get; }

Property Value

bool

True if the node can be reduced, otherwise false.

InnerExpression

public Expression InnerExpression { get; }

Property Value

Expression

NodeType

Gets the node type of this Expression.

public override ExpressionType NodeType { get; }

Property Value

ExpressionType

One of the ExpressionType values.

NotNullExpressions

public ReadOnlyCollection<Expression> NotNullExpressions { get; }

Property Value

ReadOnlyCollection<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.

Reduce()

Reduces this node to a simpler expression. If CanReduce returns true, this should return a valid expression. This method can return another node which itself must be reduced.

public override Expression Reduce()

Returns

Expression

The reduced expression.

ToString()

Returns a textual representation of the Expression.

public override string ToString()

Returns

string

A textual representation of the Expression.

Update(Expression, ReadOnlyCollection<Expression>)

public SqlDefaultIfEmptyExpression Update(Expression innerExpression, ReadOnlyCollection<Expression> notNullExpressions)

Parameters

innerExpression Expression
notNullExpressions ReadOnlyCollection<Expression>

Returns

SqlDefaultIfEmptyExpression