Interface ICreateTableWithColumnBuilder
Provides a builder interface for defining columns when creating a new table as part of a database migration.
Namespace: Umbraco.Cms.Infrastructure.Migrations.Expressions.Create.Table
Assembly: Umbraco.Infrastructure.dll
Syntax
public interface ICreateTableWithColumnBuilder : IFluentBuilder, IExecutableBuilder
Methods
View SourceWithColumn(string)
Adds a new column with the specified name to the table being created.
Declaration
ICreateTableColumnAsTypeBuilder WithColumn(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The name of the column to add. |
Returns
| Type | Description |
|---|---|
| ICreateTableColumnAsTypeBuilder | An ICreateTableColumnAsTypeBuilder to specify the column type and constraints. |