Table of Contents

Class CaseWhenClause

Namespace
Microsoft.EntityFrameworkCore.Query.SqlExpressions
Assembly
Microsoft.EntityFrameworkCore.Relational.dll

An expression that represents a WHEN...THEN... construct in a SQL tree.

This type is typically used by database providers (and other extensions). It is generally not used in application code.

public class CaseWhenClause
Inheritance
CaseWhenClause
Inherited Members

Constructors

CaseWhenClause(SqlExpression, SqlExpression)

Creates a new instance of the CaseWhenClause class.

public CaseWhenClause(SqlExpression test, SqlExpression result)

Parameters

test SqlExpression

A value to compare with Operand or condition to evaluate.

result SqlExpression

A value to return if test succeeds.

Properties

Result

The value to return if Test succeeds.

public virtual SqlExpression Result { get; }

Property Value

SqlExpression

Test

The value to compare with Operand or the condition to evaluate.

public virtual SqlExpression Test { get; }

Property Value

SqlExpression

Methods

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int