Share via


CaseExpression Class

Definition

Represents a SQL CASE expression.

public class CaseExpression : System.Linq.Expressions.Expression, Microsoft.EntityFrameworkCore.Query.Expressions.Internal.IPrintable
type CaseExpression = class
    inherit Expression
    interface IPrintable
Public Class CaseExpression
Inherits Expression
Implements IPrintable
Inheritance
CaseExpression
Implements
Microsoft.EntityFrameworkCore.Query.Expressions.Internal.IPrintable

Constructors

CaseExpression(CaseWhenClause[])

Initializes a new instance of the CaseExpression class.

CaseExpression(Expression, CaseWhenClause[])

Initializes a new instance of the CaseExpression class.

CaseExpression(Expression, IReadOnlyList<CaseWhenClause>, Expression)

Initializes a new instance of the CaseExpression class.

CaseExpression(IReadOnlyList<CaseWhenClause>, Expression)

Initializes a new instance of the CaseExpression class.

Properties

ElseResult

Gets the else result expression.

NodeType

Gets the node type of this Expression.

Operand

Gets the case operand expression.

Type

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

WhenClauses

Gets the list of when clauses.

Methods

Accept(ExpressionVisitor)

Dispatches to the specific visit method for this node type.

Equals(Object)

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

GetHashCode()

Gets a hash code for the current object.

ToString()

Returns a string that represents the current object.

VisitChildren(ExpressionVisitor)

Reduces the node and then calls the visitor delegate on the reduced expression. The method throws an exception if the node is not reducible.

Explicit Interface Implementations

IPrintable.Print(ExpressionPrinter)

Applies to