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
testSqlExpressionA value to compare with Operand or condition to evaluate.
resultSqlExpressionA value to return if test succeeds.
Properties
Result
The value to return if Test succeeds.
public virtual SqlExpression Result { get; }
Property Value
Test
The value to compare with Operand or the condition to evaluate.
public virtual SqlExpression Test { get; }
Property Value
Methods
Equals(object)
public override bool Equals(object obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()