protected override void VisitSubQuery(ISubQueryBuilder expression) { this.Builder.AppendFormat("{0} ", this.Database.QueryFactory.Dialect.OPEN_PARENTHESES); base.VisitSubQuery(expression); this.Builder.AppendFormat("{0} ", this.Database.QueryFactory.Dialect.CLOSE_PARENTHESES); this.VisitAlias(expression.Alias); }
protected virtual void VisitSubQuery(ISubQueryBuilder expression) { var query = expression.Query.Build(); this.Builder.AppendFormat("{0} ", query.CommandText); this.Parameters.AddRange(query.Parameters.Except(this.Parameters)); }
protected override void VisitSubQuery(ISubQueryBuilder expression) { if (this.GetRenderContext().HasFlag(RenderHints.FunctionArgument)) { base.VisitSubQuery(expression); } else { this.Builder.AppendFormat("{0} ", this.Database.QueryFactory.Dialect.OPEN_PARENTHESES); base.VisitSubQuery(expression); this.Builder.AppendFormat("{0} ", this.Database.QueryFactory.Dialect.CLOSE_PARENTHESES); } }