/// <summary>
 /// Generates the text for a Subtraction builder.
 /// </summary>
 /// <param name="item">The Subtraction builder to generate the text for.</param>
 protected internal override void VisitSubtraction(Subtraction item)
 {
     visitArithmeticExpression(item, "-");
 }
示例#2
0
 private object buildAdditiveOperator(MatchResult result, IProjectionItem leftHand, IProjectionItem rightHand, bool wrap)
 {
     MatchResult plusResult = result.Matches[SqlGrammar.AdditiveOperator.PlusOperator];
     if (plusResult.IsMatch)
     {
         Addition addition = new Addition(leftHand, rightHand);
         addition.WrapInParentheses = wrap;
         return addition;
     }
     MatchResult minusResult = result.Matches[SqlGrammar.AdditiveOperator.MinusOperator];
     if (minusResult.IsMatch)
     {
         Subtraction subtraction = new Subtraction(leftHand, rightHand);
         subtraction.WrapInParentheses = wrap;
         return subtraction;
     }
     throw new InvalidOperationException();
 }
示例#3
0
 /// <summary>
 /// Visits a Subtraction builder.
 /// </summary>
 /// <param name="item">The item to visit.</param>
 protected internal virtual void VisitSubtraction(Subtraction item)
 {
 }
示例#4
0
 /// <summary>
 /// Visits a Subtraction builder.
 /// </summary>
 /// <param name="item">The item to visit.</param>
 protected internal virtual void VisitSubtraction(Subtraction item)
 {
 }