public override Expression Translate(Expression expression) { // fix up any order-by's expression = OrderByRewriter.Rewrite(expression); expression = base.Translate(expression); expression = CrossJoinIsolator.Isolate(expression); expression = ThreeTopPagerRewriter.Rewrite(expression); expression = OrderByRewriter.Rewrite(expression); expression = UnusedColumnRemover.Remove(expression); expression = RedundantColumnRemover.Remove(expression); return(expression); }
public override Expression Translate(Expression expression) { // fix up any order-by's expression = OrderByRewriter.Rewrite(this.Language, expression); expression = base.Translate(expression); expression = CrossJoinIsolator.Isolate(expression); expression = SkipToNestedOrderByRewriter.Rewrite(this.Language, expression); expression = OrderByRewriter.Rewrite(this.Language, expression); expression = UnusedColumnRemover.Remove(expression); expression = RedundantSubqueryRemover.Remove(expression); return(expression); }