Table of Contents

Class DropForeignKeyOperation

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

A MigrationOperation for dropping an existing foreign key.

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

Remarks

See Database migrations for more information and examples.

Constructors

DropForeignKeyOperation()

public DropForeignKeyOperation()

Properties

Name

The name of the foreign key constraint.

public virtual string Name { 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 table that contains the foreign key constraint.

public virtual string Table { get; set; }

Property Value

string