Interface ICreateConstraintColumnsBuilder
Provides a builder interface for specifying columns when creating a database constraint in a migration expression.
Namespace: Umbraco.Cms.Infrastructure.Migrations.Expressions.Create.Constraint
Assembly: Umbraco.Infrastructure.dll
Syntax
public interface ICreateConstraintColumnsBuilder : IFluentBuilder
Methods
View SourceColumn(string)
Specifies the name of the column to which the constraint will be applied in the migration.
Declaration
IExecutableBuilder Column(string columnName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | columnName | The name of the column to specify for the constraint. |
Returns
| Type | Description |
|---|---|
| IExecutableBuilder | An IExecutableBuilder to execute the next step in the migration. |
Columns(string[])
Specifies the constraint columns.
Declaration
IExecutableBuilder Columns(string[] columnNames)
Parameters
| Type | Name | Description |
|---|---|---|
| string[] | columnNames |
Returns
| Type | Description |
|---|---|
| IExecutableBuilder |