public static string GetStatement(Parameters parameters, Expression expression) { var expressionVisitor = new WhereExpressionVisitor(parameters); expressionVisitor.Statement.Append("("); expressionVisitor.VisitExpression(expression); expressionVisitor.Statement.Append(")"); return(expressionVisitor.GetStatement()); }
public override void VisitWhereClause(WhereClause whereClause, QueryModel queryModel, int index) { m_whereParts.Add(WhereExpressionVisitor.GetStatement(m_parameters, whereClause.Predicate)); }