public SqlConditionConstant(SqlBuilder sqlBuilder)
        {
            True =
                new AtomicSqlCondition(
                    sqlBuilder,
                    new[] { SqlToken.FromString(TrueExpression) }
                    );
            False =
                new AtomicSqlCondition(
                    sqlBuilder,
                    new[] { SqlToken.FromString(FalseExpression) }
                    );

            And = new ConditionCombinator(True, False, "and", isAnd: true);
            Or  = new ConditionCombinator(False, True, "or", isAnd: false);
        }
Beispiel #2
0
 public CompoundSqlCondition(SqlBuilder sqlBuilder, ConditionCombinator combinator)
     : base(sqlBuilder)
 {
     Combinator = combinator;
 }