Ejemplo n.º 1
0
 /// <summary>
 /// Generates the text for a Multiplication builder.
 /// </summary>
 /// <param name="item">The Multiplication builder to generate the text for.</param>
 protected internal override void VisitMultiplication(Multiplication item)
 {
     visitArithmeticExpression(item, "*");
 }
Ejemplo n.º 2
0
 private object buildMultiplicitiveOperator(MatchResult result, IProjectionItem leftHand, IProjectionItem rightHand, bool wrap)
 {
     MatchResult multiply = result.Matches[SqlGrammar.MultiplicitiveOperator.Multiply];
     if (multiply.IsMatch)
     {
         Multiplication multiplication = new Multiplication(leftHand, rightHand);
         multiplication.WrapInParentheses = wrap;
         return multiplication;
     }
     MatchResult divide = result.Matches[SqlGrammar.MultiplicitiveOperator.Divide];
     if (divide.IsMatch)
     {
         Division division = new Division(leftHand, rightHand);
         division.WrapInParentheses = wrap;
         return division;
     }
     MatchResult modulo = result.Matches[SqlGrammar.MultiplicitiveOperator.Modulus];
     if (modulo.IsMatch)
     {
         Modulus modulus = new Modulus(leftHand, rightHand);
         modulus.WrapInParentheses = wrap;
         return modulus;
     }
     throw new InvalidOperationException();
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Visits a Multiplication builder.
 /// </summary>
 /// <param name="item">The item to visit.</param>
 protected internal virtual void VisitMultiplication(Multiplication item)
 {
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Visits a Multiplication builder.
 /// </summary>
 /// <param name="item">The item to visit.</param>
 protected internal virtual void VisitMultiplication(Multiplication item)
 {
 }