Example #1
0
        protected override Expression VisitProjection(ProjectionExpression proj)
        {
            // don't parameterize the projector or aggregator!
            SelectExpression select = (SelectExpression)this.Visit(proj.Select);

            return(proj.Update(select, proj.Projector, proj.Aggregator));
        }
Example #2
0
        protected override Expression VisitProjection(ProjectionExpression projection)
        {
            // visit mapping in reverse order
            var projector = Visit(projection.Projector);
            var select    = (SelectExpression)Visit(projection.Select);

            return(projection.Update(select, projector, projection.Aggregator));
        }
Example #3
0
        protected override Expression VisitProjection(ProjectionExpression projectionExpression)
        {
            Check.NotNull(projectionExpression, nameof(projectionExpression));

            var expression = (SqlExpression)Visit(projectionExpression.Expression);

            return(projectionExpression.Update(expression));
        }
Example #4
0
        protected override Expression VisitProjection(ProjectionExpression proj)
        {
            var projector = Visit(proj.Projector);

            return(proj.Update(proj.Select, projector, proj.Aggregator));
        }
Example #5
0
        protected override Expression VisitProjection(ProjectionExpression projectionExpression)
        {
            var expression = (SqlExpression)Visit(projectionExpression.Expression);

            return(projectionExpression.Update(expression));
        }
 protected override Expression VisitProjection(ProjectionExpression x)
 {
     return(x?.Update(x.Expression.VisitNode(this)));
 }
Example #7
0
            protected override Expression VisitProjection(ProjectionExpression proj)
            {
                SelectExpression select = (SelectExpression)this.Visit(proj.Select);

                return(proj.Update(select, proj.Projector, proj.Aggregator));
            }