Class DeleteForeignKeyBuilder
Implements IDeleteForeignKey...
Namespace: Umbraco.Cms.Infrastructure.Migrations.Expressions.Delete.ForeignKey
Assembly: Umbraco.Infrastructure.dll
Syntax
public class DeleteForeignKeyBuilder : ExpressionBuilderBase<DeleteForeignKeyExpression>, IDeleteForeignKeyFromTableBuilder, IDeleteForeignKeyForeignColumnBuilder, IDeleteForeignKeyToTableBuilder, IDeleteForeignKeyPrimaryColumnBuilder, IDeleteForeignKeyOnTableBuilder, IFluentBuilder
Constructors
View SourceDeleteForeignKeyBuilder(DeleteForeignKeyExpression)
Initializes a new instance of the DeleteForeignKeyBuilder class.
Declaration
public DeleteForeignKeyBuilder(DeleteForeignKeyExpression expression)
Parameters
| Type | Name | Description |
|---|---|---|
| DeleteForeignKeyExpression | expression | The DeleteForeignKeyExpression that defines the foreign key to be deleted. |
Methods
View SourceForeignColumn(string)
Specifies the foreign column.
Declaration
public IDeleteForeignKeyToTableBuilder ForeignColumn(string column)
Parameters
| Type | Name | Description |
|---|---|---|
| string | column | The name of the foreign column. |
Returns
| Type | Description |
|---|---|
| IDeleteForeignKeyToTableBuilder | An IDeleteForeignKeyToTableBuilder to continue building the foreign key deletion expression. |
ForeignColumns(params string[])
Specifies the foreign columns.
Declaration
public IDeleteForeignKeyToTableBuilder ForeignColumns(params string[] columns)
Parameters
| Type | Name | Description |
|---|---|---|
| string[] | columns |
Returns
| Type | Description |
|---|---|
| IDeleteForeignKeyToTableBuilder |
FromTable(string)
Specifies the table from which the foreign key will be deleted.
Declaration
public IDeleteForeignKeyForeignColumnBuilder FromTable(string foreignTableName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | foreignTableName | The name of the table containing the foreign key to be deleted. |
Returns
| Type | Description |
|---|---|
| IDeleteForeignKeyForeignColumnBuilder | An IDeleteForeignKeyForeignColumnBuilder to specify the foreign column. |
OnTable(string)
Specifies the table from which the foreign key will be deleted.
Declaration
public IExecutableBuilder OnTable(string foreignTableName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | foreignTableName | The name of the table containing the foreign key to delete. |
Returns
| Type | Description |
|---|---|
| IExecutableBuilder | An executable builder to continue the migration expression. |
PrimaryColumn(string)
Specifies the target primary column.
Declaration
public IExecutableBuilder PrimaryColumn(string column)
Parameters
| Type | Name | Description |
|---|---|---|
| string | column |
Returns
| Type | Description |
|---|---|
| IExecutableBuilder |
PrimaryColumns(params string[])
Specifies the target primary columns.
Declaration
public IExecutableBuilder PrimaryColumns(params string[] columns)
Parameters
| Type | Name | Description |
|---|---|---|
| string[] | columns |
Returns
| Type | Description |
|---|---|
| IExecutableBuilder |
ToTable(string)
Specifies the target table of the foreign key.
Declaration
public IDeleteForeignKeyPrimaryColumnBuilder ToTable(string table)
Parameters
| Type | Name | Description |
|---|---|---|
| string | table |
Returns
| Type | Description |
|---|---|
| IDeleteForeignKeyPrimaryColumnBuilder |