Example #1
0
 public void AggregateConstructorTest1()
 {
     string name = string.Empty; // TODO: Initialize to an appropriate value
     Expression expression = null; // TODO: Initialize to an appropriate value
     Aggregate target = new Aggregate(name, expression);
     Assert.Inconclusive("TODO: Implement code to verify target");
 }
Example #2
0
 public ClausePivot(Aggregate expression, string pivotColumn, List<string> columns)
     : this()
 {
     Expression = expression;
     PivotColumn = pivotColumn;
     _columns.AddRange(columns);
 }
Example #3
0
 public void AggregateConstructorTest2()
 {
     Aggregate target = new Aggregate();
     Assert.Inconclusive("TODO: Implement code to verify target");
 }
Example #4
0
        private void GenerateCodeFromAggregate(Aggregate expression, TextWriter writer, CodeGeneratorOptions options)
        {
            if (expression is NullIncluded)
            {
                if (((NullIncluded)expression).IsStar)
                {
                    writer.Write("(*)");
                    return;
                }
            }

            writer.Write(expression.Qualifier == AggregateQualifier.All ? "ALL " : "DISTINCT ");
            if (!string.IsNullOrEmpty(expression.Name)) { writer.Write(expression.Name); }
            writer.Write("(");
            GenerateCodeFromExpression(((Aggregate)expression).Expression, writer, options);
            writer.Write(")");
        }