Ejemplo n.º 1
0
		public void Visit(BinaryLogicOperator op)
		{
			switch(op)
			{
				case BinaryLogicOperator.Equals :
					_Query.Append("= ");
					break;

				case BinaryLogicOperator.Greater :
					_Query.Append("> ");
					break;

				case BinaryLogicOperator.Lesser :
					_Query.Append("< ");
					break;

				case BinaryLogicOperator.GreaterOrEquals :
					_Query.Append(">= ");
					break;

				case BinaryLogicOperator.LesserOrEquals :
					_Query.Append("<= ");
					break;

				case BinaryLogicOperator.NotEquals :
					_Query.Append("<> ");
					break;

				default :
					_Query.AppendFormat("{0} ",op.ToString());
					break;

			}
		}
Ejemplo n.º 2
0
		public WhereClause(BinaryLogicOperator defaultOperator)
		{
			_DefaultOperator = defaultOperator;
		}
Ejemplo n.º 3
0
		public BinaryLogicExpression(ISQLExpression leftOperand, BinaryLogicOperator op, ISQLExpression rightOperand)
		{
			_LeftOperand = leftOperand;
			_Operator = op;
			_RightOperand = rightOperand;
		}
Ejemplo n.º 4
0
 public BinaryLogic(BinaryLogicOperator @operator, BonsaiExpression left, BonsaiExpression right) : base(typeof(bool))
 {
     Operator = @operator;
     Left     = AssertNotNull(left);
     Right    = AssertNotNull(right);
 }
Ejemplo n.º 5
0
		public virtual void Visit(BinaryLogicOperator op)
		{
			switch(op)
			{
				case BinaryLogicOperator.Equals :
					_Query.Append(EQUAL);
					break;

				case BinaryLogicOperator.Greater :
					_Query.Append(GREATER);
					break;

				case BinaryLogicOperator.Lesser :
					_Query.Append(LESSER);
					break;

				case BinaryLogicOperator.GreaterOrEquals :
					_Query.Append(GREATEREQ);
					break;

				case BinaryLogicOperator.LesserOrEquals :
					_Query.Append(LESSEREQ);
					break;

				case BinaryLogicOperator.NotEquals :
					_Query.Append(NOTEQUAL);
					break;

                // Arithmetic operators

                case BinaryLogicOperator.Plus:
                    _Query.Append(PLUS);
                    break;

                case BinaryLogicOperator.Minus:
                    _Query.Append(MINUS);
                    break;

                case BinaryLogicOperator.Times:
                    _Query.Append(MULT);
                    break;

                case BinaryLogicOperator.Div:
                    _Query.Append(DIV);
                    break;

                case BinaryLogicOperator.Modulo:
                    _Query.Append(MOD);
                    break;

				default :
					_Query.Append(op.ToString()).Append(SPACE);
					break;
			}
		}