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

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 table name or null if only the schema has changed.

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