Class DeleteForeignKeyExpression
Represents a database migration expression that deletes a foreign key constraint from a table.
Namespace: Umbraco.Cms.Infrastructure.Migrations.Expressions.Delete.Expressions
Assembly: Umbraco.Infrastructure.dll
Syntax
public class DeleteForeignKeyExpression : MigrationExpressionBase, IMigrationExpression
Constructors
View SourceDeleteForeignKeyExpression(IMigrationContext)
Initializes a new instance of the DeleteForeignKeyExpression class, used to define a database migration expression for deleting a foreign key.
Declaration
public DeleteForeignKeyExpression(IMigrationContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| IMigrationContext | context | The migration context that provides information and services for the migration process. |
Properties
View SourceForeignKey
Gets or sets the definition of the foreign key that will be deleted by this expression.
Declaration
public ForeignKeyDefinition ForeignKey { get; set; }
Property Value
| Type | Description |
|---|---|
| ForeignKeyDefinition |
Methods
View SourceGetSql()
Declaration
protected override string GetSql()
Returns
| Type | Description |
|---|---|
| string |