Table of Contents

Class DeleteDataOperation

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

A MigrationOperation for deleting seed data from an existing table.

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

Remarks

See Database migrations for more information and examples.

Constructors

DeleteDataOperation()

public DeleteDataOperation()

Properties

KeyColumnTypes

A list of store types for the columns that will be used to identify the rows that should be deleted.

public virtual string[]? KeyColumnTypes { get; set; }

Property Value

string[]

KeyColumns

A list of column names that represent the columns that will be used to identify the rows that should be deleted.

public virtual string[] KeyColumns { get; set; }

Property Value

string[]

KeyValues

The rows to be deleted, represented as a list of key value arrays where each value in the array corresponds to a column in the KeyColumns property.

public virtual object?[,] KeyValues { get; set; }

Property Value

object[,]

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 from which data will be deleted.

public virtual string Table { get; set; }

Property Value

string