Table of Contents

Class RenameColumnOperation

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

A MigrationOperation for renaming an existing column.

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

Constructors

RenameColumnOperation()

public RenameColumnOperation()

Properties

Name

The old name of the column.

public virtual string Name { get; set; }

Property Value

string

NewName

The new name for the column.

public virtual string NewName { 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

Table

The name of the table that contains the column.

public virtual string Table { get; set; }

Property Value

string