AppendLine() public method

public AppendLine ( ) : void
return void
        void ISqlFormattable.AppendTo(SqlStringBuilder builder)
        {
            builder.Append("WHEN ");
            if (Handled.IsForOthers)
            {
                builder.Append("OTHERS");
            }
            else
            {
                var names = String.Join(", ", Handled.ExceptionNames.ToArray());
                builder.Append(names);
            }

            builder.AppendLine("THEN ");
            builder.Indent();

            foreach (var statement in Statements)
            {
                statement.AppendTo(builder);
                builder.AppendLine();
            }

            builder.DeIndent();
        }
Esempio n. 2
0
        void ISqlFormattable.AppendTo(SqlStringBuilder builder)
        {
            builder.Append("WHEN ");
            if (Handled.IsForOthers) {
                builder.Append("OTHERS");
            } else {
                var names = String.Join(", ", Handled.ExceptionNames.ToArray());
                builder.Append(names);
            }

            builder.AppendLine("THEN ");
            builder.Indent();

            foreach (var statement in Statements) {
                statement.AppendTo(builder);
                builder.AppendLine();
            }

            builder.DeIndent();
        }