Table of Contents

Class MigrationOperation

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

Base class for all Migrations operations that can be performed against a database.

public abstract class MigrationOperation : Annotatable
Inheritance
MigrationOperation
Derived

Remarks

See Database migrations for more information and examples.

Constructors

MigrationOperation()

protected MigrationOperation()

Properties

IsDestructiveChange

Indicates whether or not the operation might result in loss of data in the database.

public virtual bool IsDestructiveChange { get; set; }

Property Value

bool