Share via


CreateTableBuilder<TColumns> Class

Definition

A builder for CreateTableOperation operations.

public class CreateTableBuilder<TColumns> : Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.CreateTableOperation>
type CreateTableBuilder<'Columns> = class
    inherit OperationBuilder<CreateTableOperation>
Public Class CreateTableBuilder(Of TColumns)
Inherits OperationBuilder(Of CreateTableOperation)

Type Parameters

TColumns

Type of a typically anonymous type for building columns.

Inheritance
CreateTableBuilder<TColumns>

Constructors

CreateTableBuilder<TColumns>(CreateTableOperation, IReadOnlyDictionary<PropertyInfo,AddColumnOperation>)

Constructs a new builder for the given CreateTableOperation and with the given map of AddColumnOperation operations for columns.

Properties

Operation

The MigrationOperation.

(Inherited from OperationBuilder<TOperation>)

Methods

Annotation(String, Object)

Annotates the operation with the given name/value pair.

CheckConstraint(String, String)

Configures a check constraint on the table.

ForeignKey(String, Expression<Func<TColumns,Object>>, String, String, String, ReferentialAction, ReferentialAction)

Configures a single-column foreign key on the table.

ForeignKey(String, Expression<Func<TColumns,Object>>, String, String[], String, ReferentialAction, ReferentialAction)

Configures a multiple-column (composite) foreign key on the table.

PrimaryKey(String, Expression<Func<TColumns,Object>>)

Configures a primary key on the table.

UniqueConstraint(String, Expression<Func<TColumns,Object>>)

Configures a unique constraint on the table.

Explicit Interface Implementations

IInfrastructure<TOperation>.Instance (Inherited from OperationBuilder<TOperation>)

Extension Methods

GetInfrastructure<T>(IInfrastructure<T>)

Gets the value from a property that is being hidden using IInfrastructure<T>.

This method is typically used by database providers (and other extensions). It is generally not used in application code.

Applies to