Class CoalesceExpression
Coalesce expression for the C# ?? operator and n-ary -style fallbacks.
Examples: x.Bonus ?? 0, x.Name ?? x.LegalName ?? "(n/a)".
Emitted by the shared parser when it sees ;
translated to COALESCE(arg1, arg2, ...) by both the Free PVT engine ($coalesce) and the Pro SQL mapper.
Chained a ?? b ?? c is parsed right-associatively, so the parser flattens it into a single n-ary node.
public record CoalesceExpression : ValueExpression, IEquatable<ValueExpression>, IEquatable<CoalesceExpression>
Inheritance
Implements
Properties
Arguments
public IReadOnlyList<ValueExpression> Arguments { get; init; }
Constructors
CoalesceExpression(IReadOnlyList<ValueExpression>)
Coalesce expression for the C# ?? operator and n-ary -style fallbacks.