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