Exemple #1
0
 protected override void Visit(SqlSubqueryCollection collection)
 {
     if (collection.Query.FromClause != null)
     {
         this.rootName = SqlRootNameExtractor.ExtractRootName(collection.Query.FromClause.Expression);
     }
     else
     {
         this.rootName = string.Empty;
     }
 }
        public SqlSubqueryCollectionExpression(SqlIdentifier inputIdentifier, SqlSubqueryCollection query)
            : base(SqlObjectKind.SubqueryCollectionExpression)
        {
            if (inputIdentifier == null)
            {
                throw new ArgumentException("inputIdentifier");
            }

            if (query == null)
            {
                throw new ArgumentNullException("query");
            }

            this.InputIdentifier = inputIdentifier;
            this.Query           = query;
        }
 public override SqlObject Visit(SqlSubqueryCollection sqlSubqueryCollection)
 {
     return(SqlSubqueryCollection.Create(sqlSubqueryCollection.Query.Accept(this) as SqlQuery));
 }
Exemple #4
0
 public abstract void Visit(SqlSubqueryCollection collection);
 public override void Visit(SqlSubqueryCollection sqlSubqueryCollection)
 {
     this.WriteStartContext("(");
     sqlSubqueryCollection.Query.Accept(this);
     this.WriteEndContext(")");
 }
Exemple #6
0
 protected abstract void Visit(SqlSubqueryCollection collection);
 public override void Visit(SqlSubqueryCollection sqlSubqueryCollection)
 {
     this.writer.Write("(");
     sqlSubqueryCollection.Query.Accept(this);
     this.writer.Write(")");
 }