Table of Contents

Class RenameTableOperation

Namespace
Microsoft.EntityFrameworkCore.Migrations.Operations
Assembly
Microsoft.EntityFrameworkCore.Relational.dll

A MigrationOperation for renaming an existing table.

public class RenameTableOperation : MigrationOperation, ITableMigrationOperation
Inheritance
RenameTableOperation
Implements
Inherited Members

Remarks

See Database migrations for more information and examples.

Constructors

RenameTableOperation()

public RenameTableOperation()

Properties

Name

The old name of the table.

public virtual string Name { get; set; }

Property Value

string

NewName

The new table name or null if only the schema has changed.

public virtual string? NewName { get; set; }

Property Value

string

NewSchema

The new schema name, or null to use the default schema.

public virtual string? NewSchema { get; set; }

Property Value

string

Schema

The schema that contains the table, or null if the default schema should be used.

public virtual string? Schema { get; set; }

Property Value

string