protected override Expression VisitSubSelect(ScalarSubqueryExpression scalarSubqueryExpression) { var parentSearchCondition = _isSearchCondition; var subquery = (SelectExpression)Visit(scalarSubqueryExpression.Subquery); _isSearchCondition = parentSearchCondition; return(ApplyConversion(scalarSubqueryExpression.Update(subquery), condition: false)); }
protected override Expression VisitScalarSubquery(ScalarSubqueryExpression scalarSubqueryExpression) { var canOptimize = _canOptimize; _canOptimize = false; var subquery = (SelectExpression)Visit(scalarSubqueryExpression.Subquery); _canOptimize = canOptimize; return(scalarSubqueryExpression.Update(subquery)); }
protected override Expression VisitSubSelect(ScalarSubqueryExpression x) { return(x?.Update(x.Subquery.VisitNode(this))); }