示例#1
0
        protected Expression VisitSubSelect(ScalarSubqueryExpression scalarSubqueryExpression)
        {
            var canOptimize = _canOptimize;

            _canOptimize = false;
            var subquery = (SelectExpression)Visit(scalarSubqueryExpression.Subquery);

            _canOptimize = canOptimize;

            return(scalarSubqueryExpression.Update(subquery));
        }
示例#2
0
        protected Expression VisitSubSelect(ScalarSubqueryExpression scalarSubqueryExpression)
        {
            _relationalCommandBuilder.AppendLine("(");
            using (_relationalCommandBuilder.Indent())
            {
                Visit(scalarSubqueryExpression.Subquery);
            }

            _relationalCommandBuilder.Append(")");

            return(scalarSubqueryExpression);
        }