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)); }
public override void Build(SqlFragment parent, TSqlVisitor visitor) { visitor.DivideArithmeticExpressionOperator(parent, this); }
public override void Build(SqlFragment parent, TSqlVisitor visitor) { visitor.SearchedCase(parent, this); }
public override void Build(SqlFragment parent, TSqlVisitor visitor) { visitor.VisitColumn(parent, this); }
public override void Build(SqlFragment parent, TSqlVisitor visitor) { visitor.UpdateTopPercentTable(parent, this); }
public override void Build(SqlFragment parent, TSqlVisitor visitor) { visitor.ConstantExpression(parent, this); }
public override void Build(SqlFragment parent, TSqlVisitor visitor) { visitor.VisitScalarSelectStatementExpression(parent, this); }
public override void Build(SqlFragment parent, TSqlVisitor visitor) { visitor.WhereDelete(parent, this); }
public override void Build(SqlFragment parent, TSqlVisitor visitor) { visitor.DeleteTopPercentFromTable(parent, this); }
public override void Build(SqlFragment parent, TSqlVisitor visitor) { visitor.InsertValuesStart(parent, this); }
public override void Build(SqlFragment parent, TSqlVisitor visitor) { visitor.SelectTopPercent <T>(parent, this); }
public override void Build(SqlFragment parent, TSqlVisitor visitor) { visitor.StartsWithPredicate(parent, this); }
public override void Build(SqlFragment parent, TSqlVisitor visitor) { visitor.InsertTopPercentIntoTable(parent, this); }
public override void Build(SqlFragment parent, TSqlVisitor visitor) { visitor.ExpressionAssign(parent, this); }
public override void Build(SqlFragment parent, TSqlVisitor visitor) { visitor.CrossApply(parent, this); }
public override void Build(SqlFragment parent, TSqlVisitor visitor) { visitor.UserDefinedFunction(parent, this); }
public override void Build(SqlFragment parent, TSqlVisitor visitor) { visitor.InsertAdvancedClause(parent, this); }
public override void Build(SqlFragment parent, TSqlVisitor visitor) { visitor.SelectDistinct <T>(parent, this); }
public override void Build(SqlFragment parent, TSqlVisitor visitor) { visitor.Parameter(parent, this); }
public override void Build(SqlFragment parent, TSqlVisitor visitor) { visitor.InsertIntoTableAdvanced(parent, this); }
public override void Build(SqlFragment parent, TSqlVisitor visitor) { visitor.FromClause(parent, this); }
public override void Build(SqlFragment parent, TSqlVisitor visitor) { visitor.RightOuterJoin <T>(parent, this); }
public override void Build(SqlFragment parent, TSqlVisitor visitor) { visitor.GroupByClause <T>(parent, this); }
public override void Build(SqlFragment parent, TSqlVisitor visitor) { visitor.NextValues(parent, this); }
public override void Build(SqlFragment parent, TSqlVisitor visitor) { visitor.VisitRowNumberOverOrderByExpression(parent, this); }
public override void Build(SqlFragment parent, TSqlVisitor visitor) { throw new NotImplementedException(); }
public override void Build(SqlFragment parent, TSqlVisitor visitor) { visitor.SimpleFunction(parent, this); }
public override void Build(SqlFragment parent, TSqlVisitor visitor) { visitor.Table(parent, this); }
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; }