Exemple #1
0
 private void Write(string name, DbAggregate aggregate)
 {
     WriteLine(string.Format("{0} ({1}): {2}", name, aggregate.GetType().Name, aggregate.ResultType));
     _depth++;
     Write("Arguments", aggregate.Arguments);
     _depth--;
 }
Exemple #2
0
        private VfpAggregate CreateDbAggregate(DbAggregate aggregate)
        {
            var functionAggregate = aggregate as DbFunctionAggregate;

            if (functionAggregate != null)
            {
                return(new VfpFunctionAggregate(functionAggregate.ResultType,
                                                CreateDbExpressionList(functionAggregate.Arguments),
                                                functionAggregate.Function,
                                                functionAggregate.Distinct));
            }

            throw new NotImplementedException(aggregate.GetType().ToString());
        }