protected override Expression VisitSubquery(SubqueryExpression subquery) { var saveOrderings = this.gatheredOrderings; this.gatheredOrderings = null; var result = base.VisitSubquery(subquery); this.gatheredOrderings = saveOrderings; return(result); }
protected override Expression VisitSubquery(SubqueryExpression subquery) { if ((subquery.NodeType == (ExpressionType)DbExpressionType.Scalar || subquery.NodeType == (ExpressionType)DbExpressionType.In) && subquery.Select != null) { System.Diagnostics.Debug.Assert(subquery.Select.Columns.Count == 1); MarkColumnAsUsed(subquery.Select.Alias, subquery.Select.Columns[0].Name); } return(base.VisitSubquery(subquery)); }
protected override Expression VisitSubquery(SubqueryExpression subquery) { // don't count aggregates in subqueries return(subquery); }
protected override Expression VisitSubquery(SubqueryExpression subquery) { return(subquery); }
protected override Expression VisitSubquery(SubqueryExpression subquery) { // don't gather inside scalar & exists return(subquery); }