CreateTableBuilder<TColumns> Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A builder for CreateTableOperation operations.
public class CreateTableBuilder<TColumns> : Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.CreateTableOperation>
[System.Runtime.CompilerServices.Nullable(new System.Byte[] { 0, 1 })]
public class CreateTableBuilder<TColumns> : Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.CreateTableOperation>
type CreateTableBuilder<'Columns> = class
inherit OperationBuilder<CreateTableOperation>
[<System.Runtime.CompilerServices.Nullable(new System.Byte[] { 0, 1 })>]
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
- Attributes
Constructors
| Name | Description |
|---|---|
| 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
| Name | Description |
|---|---|
| Operation |
The MigrationOperation. (Inherited from OperationBuilder<TOperation>) |
Methods
| Name | Description |
|---|---|
| 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
| Name | Description |
|---|---|
| IInfrastructure<TOperation>.Instance | (Inherited from OperationBuilder<TOperation>) |
Extension Methods
| Name | Description |
|---|---|
| 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. |