/// <summary> /// Evaluates an input expression against the input in a simple CASE format. /// </summary> /// <param name="prev">A predecessor object.</param> /// <param name="argument1">Is the first argument in the equality expression.</param> /// <param name="argument2">Is the second argument in the equality expression.</param> /// <param name="equality">Specifies the type of the relation between the two arguments. true indicates the equality operator, false indicates the inequality operator.</param> public static CaseWhenChainer When(this ICaseWhen prev, ScalarArgument argument1, ValueScalarArgument argument2, bool equality = true) { return(new CaseWhenChainer((Chainer)prev, argument1, argument2, equality)); }
/// <summary> /// Evaluates an input expression against the input in a simple CASE format. /// </summary> /// <param name="prev">A predecessor object.</param> /// <param name="expression">An input expression.</param> public static CaseWhenChainer When(this ICaseWhen prev, ValueScalarArgument expression) { return(new CaseWhenChainer((Chainer)prev, expression)); }