src/EntityFramework/Migrations/Design/CSharpMigrationCodeGenerator.cs
/// <summary>
///     Generates code to perform a <see cref="MoveTableOperation" />.
/// </summary>
/// <param name="moveTableOperation"> 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(MoveTableOperation moveTableOperation, IndentedTextWriter writer)
        {
            Check.NotNull(moveTableOperation, "moveTableOperation");
            Check.NotNull(writer, "writer");
            writer.Write("MoveTable(name: ");
            writer.Write(Quote(moveTableOperation.Name));
            writer.Write(", newSchema: ");
            writer.Write(
                string.IsNullOrWhiteSpace(moveTableOperation.NewSchema) ? "null" : Quote(moveTableOperation.NewSchema));
            writer.WriteLine(");");
        }
protected virtual void Generate ( MoveTableOperation moveTableOperation , IndentedTextWriter writer ) { Check . NotNull ( moveTableOperation , " " ) ; Check . NotNull ( writer , " " ) ; writer . Write ( " " ) ; writer . Write ( Quote ( moveTableOperation . Name ) ) ; writer . Write ( " " ) ; writer . Write ( string . IsNullOrWhiteSpace ( moveTableOperation . NewSchema ) ? " " : Quote ( moveTableOperation . NewSchema ) ) ; writer . WriteLine ( " " ) ; }
Generates code to perform a .
Generates code to perform a .
moveTableOperation
MoveTableOperation
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 .