示例#1
0
 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);
 }
示例#2
0
        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));
        }
示例#3
0
 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);
     }
 }