src/Shared/EntityFramework/Migrations/Design/CSharpMigrationCodeGenerator.cs
/// <summary>
/// Generates code to perform a <see cref="RenameColumnOperation" />.
/// </summary>
/// <param name="renameColumnOperation"> 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(RenameColumnOperation renameColumnOperation, IndentedTextWriter writer)
        {
            Check.NotNull(renameColumnOperation, "renameColumnOperation");
            Check.NotNull(writer, "writer");
            writer.Write("RenameColumn(table: ");
            writer.Write(Quote(renameColumnOperation.Table));
            writer.Write(", name: ");
            writer.Write(Quote(renameColumnOperation.Name));
            writer.Write(", newName: ");
            writer.Write(Quote(renameColumnOperation.NewName));
            writer.WriteLine(");");
        }
protected virtual void Generate ( RenameColumnOperation renameColumnOperation , IndentedTextWriter writer ) { Check . NotNull ( renameColumnOperation , " " ) ; Check . NotNull ( writer , " " ) ; writer . Write ( " " ) ; writer . Write ( Quote ( renameColumnOperation . Table ) ) ; writer . Write ( " " ) ; writer . Write ( Quote ( renameColumnOperation . Name ) ) ; writer . Write ( " " ) ; writer . Write ( Quote ( renameColumnOperation . NewName ) ) ; writer . WriteLine ( " " ) ; }
Generates code to perform a .
Generates code to perform a .
renameColumnOperation
RenameColumnOperation
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 .