Example #1
0
        internal static bool CanLift(SqlSource source, HashSet <SqlAlias> aliasesForLifting, HashSet <SqlExpression> liftedExpressions)
        {
            Diagnostics.Debug.Assert(source != null);
            Diagnostics.Debug.Assert(aliasesForLifting != null);
            PredicateLifter v = new PredicateLifter(false, aliasesForLifting, liftedExpressions);

            v.VisitSource(source);
            return(v.CanLiftAll);
        }
Example #2
0
        internal static SqlExpression Lift(SqlSource source, HashSet <SqlAlias> aliasesForLifting)
        {
            Diagnostics.Debug.Assert(source != null);
            Diagnostics.Debug.Assert(aliasesForLifting != null);
            PredicateLifter v = new PredicateLifter(true, aliasesForLifting, null);

            v.VisitSource(source);
            return(v.Lifted);
        }