src/EntityFramework/Migrations/DbMigration.cs
/// <summary>
///     Adds an operation to rename a table. To change the schema of a table use MoveTable
/// </summary>
/// <param name="name"> The name of the table to be renamed. Schema name is optional, if no schema is specified then dbo is assumed. </param>
/// <param name="newName"> The new name for the table. Schema name is optional, if no schema is specified then dbo is assumed. </param>
/// <param name="anonymousArguments"> Additional arguments that may be processed by providers. Use anonymous type syntax to specify arguments e.g. 'new { SampleArgument = "MyValue" }'. </param>
Adds an operation to rename a table. To change the schema of a table use MoveTable
Adds an operation to rename a table . To change the schema of a table use MoveTable
[SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
        protected internal void RenameTable(string name, string newName, object anonymousArguments = null)
        {
            Check.NotEmpty(name, "name");
            Check.NotEmpty(newName, "newName");
            AddOperation(new RenameTableOperation(name, newName, anonymousArguments));
        }
[ SuppressMessage ( " " , " " ) ] protected internal void RenameTable ( string name , string newName , object anonymousArguments = null ) { Check . NotEmpty ( name , " " ) ; Check . NotEmpty ( newName , " " ) ; AddOperation ( new RenameTableOperation ( name , newName , anonymousArguments ) ) ; }
Adds an operation to rename a table.
Adds an operation to rename a table .
name
string
The name of the table to be renamed. Schema name is optional, if no schema is specified then dbo is assumed.
The name of the table to be renamed . Schema name is optional if no schema is specified then dbo is assumed .
newName
string
The new name for the table. Schema name is optional, if no schema is specified then dbo is assumed.
The new name for the table . Schema name is optional if no schema is specified then dbo is assumed .
anonymousArguments
object
Additional arguments that may be processed by providers. Use anonymous type syntax to specify arguments e.g. 'new { SampleArgument = "MyValue" }'.
Additional arguments that may be processed by providers . Use anonymous type syntax to specify arguments e . g . ' new { SampleArgument = " MyValue " } ' .