src/EntityFramework/Migrations/Design/VisualBasicMigrationCodeGenerator.cs
/// <summary>
///     Generates code to perform an <see cref="AlterColumnOperation" />.
/// </summary>
/// <param name="alterColumnOperation"> The operation to generate code for. </param>
/// <param name="writer"> Text writer to add the generated code to. </param>
Generates code to perform an .
Generates code to perform an .
protected virtual void Generate(AlterColumnOperation alterColumnOperation, IndentedTextWriter writer)
        {
            Check.NotNull(alterColumnOperation, "alterColumnOperation");
            Check.NotNull(writer, "writer");
            writer.Write("AlterColumn(");
            writer.Write(Quote(alterColumnOperation.Table));
            writer.Write(", ");
            writer.Write(Quote(alterColumnOperation.Column.Name));
            writer.Write(", Function(c)");
            Generate(alterColumnOperation.Column, writer);
            writer.WriteLine(")");
        }
protected virtual void Generate ( AlterColumnOperation alterColumnOperation , IndentedTextWriter writer ) { Check . NotNull ( alterColumnOperation , " " ) ; Check . NotNull ( writer , " " ) ; writer . Write ( " " ) ; writer . Write ( Quote ( alterColumnOperation . Table ) ) ; writer . Write ( " " ) ; writer . Write ( Quote ( alterColumnOperation . Column . Name ) ) ; writer . Write ( " " ) ; Generate ( alterColumnOperation . Column , writer ) ; writer . WriteLine ( " " ) ; }
Generates code to perform an .
Generates code to perform an .
alterColumnOperation
AlterColumnOperation
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 .