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
Columns
An ordered list of AddColumnOperation for adding columns to the table.
public virtual List<AddColumnOperation> Columns { get; }
Property Value
ForeignKeys
A list of AddForeignKeyOperation for creating foreign key constraints in the table.
public virtual List<AddForeignKeyOperation> ForeignKeys { get; }
Property Value
PrimaryKey
The AddPrimaryKeyOperation representing the creation of the primary key for the table.
public virtual AddPrimaryKeyOperation PrimaryKey { get; set; }
Property Value
UniqueConstraints
A list of AddUniqueConstraintOperation for creating unique constraints in the table.
public virtual List<AddUniqueConstraintOperation> UniqueConstraints { get; }