Exemplo n.º 1
0
        private string Translate(Expression expression)
        {
            //Stopwatch timer = new Stopwatch();
            //timer.Start();
            expression = Evaluator.PartialEval(expression);
            string translation = new SQLExpressionVisitor().Translate(expression);

            //timer.Stop();
            //logger.Debug("SQL query took " + timer.ElapsedMilliseconds + "ms: " + translation + ".");
            return(translation);
        }
 private string Translate(Expression expression) {
     //Stopwatch timer = new Stopwatch();
     //timer.Start();
     expression = Evaluator.PartialEval(expression);
     string translation = new SQLExpressionVisitor().Translate(expression);
     //timer.Stop();
     //logger.Debug("SQL query took " + timer.ElapsedMilliseconds + "ms: " + translation + ".");
     return translation;
 }