public SqlComparePredicate(SqlSearchCondition sqlSearchCondition, SqlExpression leftExpression, SqlCompareOperator sqlCompareOperator, SqlExpression rightExpression)
     : base(sqlSearchCondition)
 {
     this.leftExpression = leftExpression;
     this.sqlCompareOperator = sqlCompareOperator;
     this.rightExpression = rightExpression;
 }
 public SqlAllPredicate(SqlSearchCondition sqlSearchCondition, SqlExpression leftExpression, SqlCompareOperator sqlCompareOperator, SqlAllPredicateType sqlAllPredicateType)
     : base(sqlSearchCondition)
 {
     this.leftExpression = leftExpression;
     this.sqlCompareOperator = sqlCompareOperator;
     this.sqlSelectStatement = new SqlSelectStatement(this);
     this.sqlAllPredicateType = sqlAllPredicateType;
 }
 public virtual void Visiting(SqlCompareOperator compareOperator)
 {
     switch (compareOperator.SqlCompareOperatorType)
     {
         case SqlCompareOperatorType.Equals :
             sqlBuilder.Append(" = ");
             break;
         case SqlCompareOperatorType.GreaterThan  :
             sqlBuilder.Append(" > ");
             break;
         case SqlCompareOperatorType.GreaterThanOrEqual  :
             sqlBuilder.Append(" >= ");
             break;
         case SqlCompareOperatorType.Like   :
             sqlBuilder.Append(" Like ");
             break;
         case SqlCompareOperatorType.NotEquals   :
             sqlBuilder.Append(" != ");
             break;
         case SqlCompareOperatorType.NotGreaterThan   :
             sqlBuilder.Append(" !> ");
             break;
         case SqlCompareOperatorType.NotSmallerThan   :
             sqlBuilder.Append(" !< ");
             break;
         case SqlCompareOperatorType.SmallerOrGreaterThan   :
             sqlBuilder.Append(" <> ");
             break;
         case SqlCompareOperatorType.SmallerThan   :
             sqlBuilder.Append(" < ");
             break;
         case SqlCompareOperatorType.SmallerThanOrEqual   :
             sqlBuilder.Append(" <= ");
             break;
         default :
             break;
     }
 }
 public virtual void Visited(SqlCompareOperator compareOperator)
 {
 }
Esempio n. 5
0
 public SqlComparePredicate(SqlSearchCondition sqlSearchCondition, SqlExpression leftExpression, SqlCompareOperator sqlCompareOperator, SqlExpression rightExpression) : base(sqlSearchCondition)
 {
     this.leftExpression     = leftExpression;
     this.sqlCompareOperator = sqlCompareOperator;
     this.rightExpression    = rightExpression;
 }
 public SqlAllPredicate(SqlSearchCondition sqlSearchCondition, SqlExpression leftExpression, SqlCompareOperator sqlCompareOperator) : this(sqlSearchCondition, leftExpression, sqlCompareOperator, SqlAllPredicateType.All)
 {
 }
 public SqlAllPredicate(SqlSearchCondition sqlSearchCondition, SqlExpression leftExpression, SqlCompareOperator sqlCompareOperator, SqlAllPredicateType sqlAllPredicateType) : base(sqlSearchCondition)
 {
     this.leftExpression      = leftExpression;
     this.sqlCompareOperator  = sqlCompareOperator;
     this.sqlSelectStatement  = new SqlSelectStatement(this);
     this.sqlAllPredicateType = sqlAllPredicateType;
 }
 public SqlAllPredicate(SqlSearchCondition sqlSearchCondition, SqlExpression leftExpression,SqlCompareOperator sqlCompareOperator)
     : this(sqlSearchCondition, leftExpression, sqlCompareOperator, SqlAllPredicateType.All)
 {
 }