Beispiel #1
0
        public string ToString(bool outputParameterDeclarations)
        {
            this.ScriptBuilder.Clear();
            TSqlVisitor visitor = new TSqlVisitor(this.ScriptBuilder);

            foreach (var statement in this.statementList)
            {
                this.ScriptBuilder.AppendFragment(statement.FirstFragment, null, visitor);
                this.ScriptBuilder.AppendLine();
            }
            return(this.ScriptBuilder.ToSqlString(outputParameterDeclarations));
        }
Beispiel #2
0
 public override void Build(SqlFragment parent, TSqlVisitor visitor)
 {
     visitor.DivideArithmeticExpressionOperator(parent, this);
 }
Beispiel #3
0
 public override void Build(SqlFragment parent, TSqlVisitor visitor)
 {
     visitor.SearchedCase(parent, this);
 }
Beispiel #4
0
 public override void Build(SqlFragment parent, TSqlVisitor visitor)
 {
     visitor.VisitColumn(parent, this);
 }
Beispiel #5
0
 public override void Build(SqlFragment parent, TSqlVisitor visitor)
 {
     visitor.UpdateTopPercentTable(parent, this);
 }
Beispiel #6
0
 public override void Build(SqlFragment parent, TSqlVisitor visitor)
 {
     visitor.ConstantExpression(parent, this);
 }
 public override void Build(SqlFragment parent, TSqlVisitor visitor)
 {
     visitor.VisitScalarSelectStatementExpression(parent, this);
 }
Beispiel #8
0
 public override void Build(SqlFragment parent, TSqlVisitor visitor)
 {
     visitor.WhereDelete(parent, this);
 }
 public override void Build(SqlFragment parent, TSqlVisitor visitor)
 {
     visitor.DeleteTopPercentFromTable(parent, this);
 }
Beispiel #10
0
 public override void Build(SqlFragment parent, TSqlVisitor visitor)
 {
     visitor.InsertValuesStart(parent, this);
 }
Beispiel #11
0
 public override void Build(SqlFragment parent, TSqlVisitor visitor)
 {
     visitor.SelectTopPercent <T>(parent, this);
 }
Beispiel #12
0
 public override void Build(SqlFragment parent, TSqlVisitor visitor)
 {
     visitor.StartsWithPredicate(parent, this);
 }
 public override void Build(SqlFragment parent, TSqlVisitor visitor)
 {
     visitor.InsertTopPercentIntoTable(parent, this);
 }
Beispiel #14
0
 public override void Build(SqlFragment parent, TSqlVisitor visitor)
 {
     visitor.ExpressionAssign(parent, this);
 }
Beispiel #15
0
 public override void Build(SqlFragment parent, TSqlVisitor visitor)
 {
     visitor.CrossApply(parent, this);
 }
Beispiel #16
0
 public override void Build(SqlFragment parent, TSqlVisitor visitor)
 {
     visitor.UserDefinedFunction(parent, this);
 }
Beispiel #17
0
 public override void Build(SqlFragment parent, TSqlVisitor visitor)
 {
     visitor.InsertAdvancedClause(parent, this);
 }
Beispiel #18
0
 public override void Build(SqlFragment parent, TSqlVisitor visitor)
 {
     visitor.SelectDistinct <T>(parent, this);
 }
Beispiel #19
0
 public override void Build(SqlFragment parent, TSqlVisitor visitor)
 {
     visitor.Parameter(parent, this);
 }
 public override void Build(SqlFragment parent, TSqlVisitor visitor)
 {
     visitor.InsertIntoTableAdvanced(parent, this);
 }
Beispiel #21
0
 public override void Build(SqlFragment parent, TSqlVisitor visitor)
 {
     visitor.FromClause(parent, this);
 }
Beispiel #22
0
 public override void Build(SqlFragment parent, TSqlVisitor visitor)
 {
     visitor.RightOuterJoin <T>(parent, this);
 }
Beispiel #23
0
 public override void Build(SqlFragment parent, TSqlVisitor visitor)
 {
     visitor.GroupByClause <T>(parent, this);
 }
Beispiel #24
0
 public override void Build(SqlFragment parent, TSqlVisitor visitor)
 {
     visitor.NextValues(parent, this);
 }
 public override void Build(SqlFragment parent, TSqlVisitor visitor)
 {
     visitor.VisitRowNumberOverOrderByExpression(parent, this);
 }
Beispiel #26
0
 public override void Build(SqlFragment parent, TSqlVisitor visitor)
 {
     throw new NotImplementedException();
 }
Beispiel #27
0
 public override void Build(SqlFragment parent, TSqlVisitor visitor)
 {
     visitor.SimpleFunction(parent, this);
 }
Beispiel #28
0
 public override void Build(SqlFragment parent, TSqlVisitor visitor)
 {
     visitor.Table(parent, this);
 }
Beispiel #29
0
        internal ScriptBuilder AppendFragment(SqlFragment fragment, SqlFragment parent, TSqlVisitor visitor) {
            SqlFragment v = parent;
            // TODO check here if this is a correct behaviour
            while (fragment != null) {
                fragment.Build(v, visitor);
                v = fragment;
                fragment = fragment.NextFragment;
            }

            return this;
        }