src/Shared/EntityFramework/Migrations/Design/CSharpMigrationCodeGenerator.cs
/// <summary>
/// Generates code to perform an <see cref="AddColumnOperation" />.
/// </summary>
/// <param name="addColumnOperation"> 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(AddColumnOperation addColumnOperation, IndentedTextWriter writer)
        {
            Check.NotNull(addColumnOperation, "addColumnOperation");
            Check.NotNull(writer, "writer");
            writer.Write("AddColumn(");
            writer.Write(Quote(addColumnOperation.Table));
            writer.Write(", ");
            writer.Write(Quote(addColumnOperation.Column.Name));
            writer.Write(", c =>");
            Generate(addColumnOperation.Column, writer);
            writer.WriteLine(");");
        }
protected virtual void Generate ( AddColumnOperation addColumnOperation , IndentedTextWriter writer ) { Check . NotNull ( addColumnOperation , " " ) ; Check . NotNull ( writer , " " ) ; writer . Write ( " " ) ; writer . Write ( Quote ( addColumnOperation . Table ) ) ; writer . Write ( " " ) ; writer . Write ( Quote ( addColumnOperation . Column . Name ) ) ; writer . Write ( " " ) ; Generate ( addColumnOperation . Column , writer ) ; writer . WriteLine ( " " ) ; }
Generates code to perform an .
Generates code to perform an .
addColumnOperation
AddColumnOperation
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 .