protected override Expression VisitExists(ExistsExpression existsExpression) { var parentSearchCondition = _isSearchCondition; _isSearchCondition = false; var subquery = (SelectExpression)Visit(existsExpression.Subquery); _isSearchCondition = parentSearchCondition; return(ApplyConversion(existsExpression.Update(subquery), condition: true)); }
protected override Expression VisitExists(ExistsExpression existsExpression) { var parentOptimize = _optimize; _optimize = false; var subquery = (SelectExpression)Visit(existsExpression.Subquery); _optimize = parentOptimize; return(ApplyConversion(existsExpression.Update(subquery), condition: true)); }
protected override Expression VisitExists(ExistsExpression existsExpression) { var canOptimize = _canOptimize; _canOptimize = false; var newSubquery = (SelectExpression)Visit(existsExpression.Subquery); _canOptimize = canOptimize; return(existsExpression.Update(newSubquery)); }
protected override Expression VisitExists(ExistsExpression x) { return(x?.Update(x.Subquery.VisitNode(this))); }