Example #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));
        }
Example #2
0
 public override void Build(SqlFragment parent, TSqlVisitor visitor)
 {
     visitor.DivideArithmeticExpressionOperator(parent, this);
 }
Example #3
0
 public override void Build(SqlFragment parent, TSqlVisitor visitor)
 {
     visitor.SearchedCase(parent, this);
 }
Example #4
0
 public override void Build(SqlFragment parent, TSqlVisitor visitor)
 {
     visitor.VisitColumn(parent, this);
 }
Example #5
0
 public override void Build(SqlFragment parent, TSqlVisitor visitor)
 {
     visitor.UpdateTopPercentTable(parent, this);
 }
Example #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);
 }
Example #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);
 }
Example #10
0
 public override void Build(SqlFragment parent, TSqlVisitor visitor)
 {
     visitor.InsertValuesStart(parent, this);
 }
Example #11
0
 public override void Build(SqlFragment parent, TSqlVisitor visitor)
 {
     visitor.SelectTopPercent <T>(parent, this);
 }
Example #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);
 }
Example #14
0
 public override void Build(SqlFragment parent, TSqlVisitor visitor)
 {
     visitor.ExpressionAssign(parent, this);
 }
Example #15
0
 public override void Build(SqlFragment parent, TSqlVisitor visitor)
 {
     visitor.CrossApply(parent, this);
 }
Example #16
0
 public override void Build(SqlFragment parent, TSqlVisitor visitor)
 {
     visitor.UserDefinedFunction(parent, this);
 }
Example #17
0
 public override void Build(SqlFragment parent, TSqlVisitor visitor)
 {
     visitor.InsertAdvancedClause(parent, this);
 }
Example #18
0
 public override void Build(SqlFragment parent, TSqlVisitor visitor)
 {
     visitor.SelectDistinct <T>(parent, this);
 }
Example #19
0
 public override void Build(SqlFragment parent, TSqlVisitor visitor)
 {
     visitor.Parameter(parent, this);
 }
Example #20
0
 public override void Build(SqlFragment parent, TSqlVisitor visitor)
 {
     visitor.InsertIntoTableAdvanced(parent, this);
 }
Example #21
0
 public override void Build(SqlFragment parent, TSqlVisitor visitor)
 {
     visitor.FromClause(parent, this);
 }
Example #22
0
 public override void Build(SqlFragment parent, TSqlVisitor visitor)
 {
     visitor.RightOuterJoin <T>(parent, this);
 }
Example #23
0
 public override void Build(SqlFragment parent, TSqlVisitor visitor)
 {
     visitor.GroupByClause <T>(parent, this);
 }
Example #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);
 }
Example #26
0
 public override void Build(SqlFragment parent, TSqlVisitor visitor)
 {
     throw new NotImplementedException();
 }
Example #27
0
 public override void Build(SqlFragment parent, TSqlVisitor visitor)
 {
     visitor.SimpleFunction(parent, this);
 }
Example #28
0
 public override void Build(SqlFragment parent, TSqlVisitor visitor)
 {
     visitor.Table(parent, this);
 }
Example #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;
        }