21 namespace Deveel.Data.Sql.Expressions {
25 if (testExpression == null)
26 throw new ArgumentNullException(
"testExpression");
27 if (trueExpression == null)
28 throw new ArgumentNullException(
"trueExpression");
30 TrueExpression = trueExpression;
31 TestExpression = testExpression;
32 FalseExpression = falsExpression;
52 public override bool CanEvaluate {
57 data.
SetValue(
"Test", TestExpression);
58 data.
SetValue(
"True", TrueExpression);
59 data.
SetValue(
"False", FalseExpression);
SqlConditionalExpression(SqlExpression testExpression, SqlExpression trueExpression, SqlExpression falsExpression)
override void GetData(SerializeData data)
void SetValue(string key, Type type, object value)
SqlConditionalExpression(ObjectData data)
static SqlConditionalExpression Conditional(SqlExpression testExpression, SqlExpression ifTrue)
SqlExpressionType
All the possible type of SqlExpression supported
object GetValue(string key)
Defines the base class for instances that represent SQL expression tree nodes.