Table of Contents

Class CreateTableOperation

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

A MigrationOperation for creating a new table.

public class CreateTableOperation : TableOperation, ITableMigrationOperation
Inheritance
CreateTableOperation
Implements
Inherited Members

Constructors

CreateTableOperation()

public CreateTableOperation()

Properties

CheckConstraints

A list of AddCheckConstraintOperation for creating check constraints in the table.

public virtual List<AddCheckConstraintOperation> CheckConstraints { get; }

Property Value

List<AddCheckConstraintOperation>

Columns

An ordered list of AddColumnOperation for adding columns to the table.

public virtual List<AddColumnOperation> Columns { get; }

Property Value

List<AddColumnOperation>

ForeignKeys

A list of AddForeignKeyOperation for creating foreign key constraints in the table.

public virtual List<AddForeignKeyOperation> ForeignKeys { get; }

Property Value

List<AddForeignKeyOperation>

PrimaryKey

The AddPrimaryKeyOperation representing the creation of the primary key for the table.

public virtual AddPrimaryKeyOperation PrimaryKey { get; set; }

Property Value

AddPrimaryKeyOperation

UniqueConstraints

A list of AddUniqueConstraintOperation for creating unique constraints in the table.

public virtual List<AddUniqueConstraintOperation> UniqueConstraints { get; }

Property Value

List<AddUniqueConstraintOperation>