public static string GetSqlExpression(Expression linqExpression, ParameterAggregator parameterAggregator) { var visitor = new SqlGeneratorExpressionTreeVisitor(parameterAggregator); visitor.Visit(linqExpression); return(visitor.GetSqlExpression()); }
private SqlGeneratorExpressionTreeVisitor(ParameterAggregator parameterAggregator) { _parameterAggregator = parameterAggregator; }