示例#1
0
        public static Expression Remove(Expression expression)
        {
            expression = new SqlRedundantSubqueryRemover().Visit(expression);
            expression = SubqueryMerger.Merge(expression);

            return(expression);
        }
    public static Expression Remove(Expression expression)
    {
        var removed    = new RedundantSubqueryRemover().Visit(expression);
        var merged     = SubqueryMerger.Merge(removed);
        var simplified = JoinSimplifier.Simplify(merged);

        return(simplified);
    }