コード例 #1
0
        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());
        }
コード例 #2
0
        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());
        }