protected Expression VisitSubSelect(ScalarSubqueryExpression scalarSubqueryExpression) { var canOptimize = _canOptimize; _canOptimize = false; var subquery = (SelectExpression)Visit(scalarSubqueryExpression.Subquery); _canOptimize = canOptimize; return(scalarSubqueryExpression.Update(subquery)); }
protected Expression VisitSubSelect(ScalarSubqueryExpression scalarSubqueryExpression) { _relationalCommandBuilder.AppendLine("("); using (_relationalCommandBuilder.Indent()) { Visit(scalarSubqueryExpression.Subquery); } _relationalCommandBuilder.Append(")"); return(scalarSubqueryExpression); }