Class ConditionalValueExpression

Assembly: redb.Core.dll

Conditional value (C# ternary ?: operator).
Examples: e.IsRemote ? e.Salary : e.Salary * 0.5m,
(e.Rating > 4 ? "TOP" : "STD").
Test is a full (comparison / logical / null-check).
Translated to CASE WHEN test THEN ifTrue ELSE ifFalse END by both the Free
PVT engine ($if in 17_pvt_expr.sql) and the Pro SQL mapper.
Named with the Value suffix to avoid collision with
.

public record ConditionalValueExpression : ValueExpression, IEquatable<ValueExpression>, IEquatable<ConditionalValueExpression>

Inheritance

Object→ValueExpression→ConditionalValueExpression

Implements

Properties

IfFalse

public ValueExpression IfFalse { get; init; }

IfTrue

public ValueExpression IfTrue { get; init; }

Test

public FilterExpression Test { get; init; }

Constructors