public static string BuildExpression(Expression expression, Dictionary <string, object> param, bool singleTable = true) { var visitor = new ExpressionUtil { _param = param, _singleTable = singleTable, }; visitor.Visit(expression); return(visitor._build.ToString()); }
public static string BuildExpression <T>(Expression expression, Dictionary <string, object> param) { var visitor = new ExpressionUtil { _value = param, _type = typeof(T) }; visitor.Visit(expression); return(visitor._build.ToString()); }