예제 #1
0
        protected override Expression VisitSubquery(SubqueryExpression subquery)
        {
            var saveOrderings = this.gatheredOrderings;

            this.gatheredOrderings = null;
            var result = base.VisitSubquery(subquery);

            this.gatheredOrderings = saveOrderings;
            return(result);
        }
예제 #2
0
 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));
 }
예제 #3
0
 protected override Expression VisitSubquery(SubqueryExpression subquery)
 {
     // don't count aggregates in subqueries
     return(subquery);
 }
예제 #4
0
 protected override Expression VisitSubquery(SubqueryExpression subquery)
 {
     return(subquery);
 }
예제 #5
0
 protected override Expression VisitSubquery(SubqueryExpression subquery)
 {
     // don't gather inside scalar & exists
     return(subquery);
 }