src/EntityFramework/Migrations/Design/VisualBasicMigrationCodeGenerator.cs
/// <summary>
///     Generates code to perform a <see cref="SqlOperation" />.
/// </summary>
/// <param name="sqlOperation"> The operation to generate code for. </param>
/// <param name="writer"> Text writer to add the generated code to. </param>
Generates code to perform a .
Generates code to perform a .
protected virtual void Generate(SqlOperation sqlOperation, IndentedTextWriter writer)
        {
            Check.NotNull(sqlOperation, "sqlOperation");
            Check.NotNull(writer, "writer");
            writer.Write("Sql(");
            writer.Write(Quote(sqlOperation.Sql));
            if (sqlOperation.SuppressTransaction)
            {
                writer.Write(", suppressTransaction := True");
            }
            writer.WriteLine(")");
        }
protected virtual void Generate ( SqlOperation sqlOperation , IndentedTextWriter writer ) { Check . NotNull ( sqlOperation , " " ) ; Check . NotNull ( writer , " " ) ; writer . Write ( " " ) ; writer . Write ( Quote ( sqlOperation . Sql ) ) ; if ( sqlOperation . SuppressTransaction ) { writer . Write ( " " ) ; } writer . WriteLine ( " " ) ; }
Generates code to perform a .
Generates code to perform a .
sqlOperation
SqlOperation
The operation to generate code for.
The operation to generate code for .
writer
IndentedTextWriter
Text writer to add the generated code to.
Text writer to add the generated code to .