Class DeleteTableExpression
Represents a database migration expression that deletes a table. This is used to define the removal of a table during a migration process.
Namespace: Umbraco.Cms.Infrastructure.Migrations.Expressions.Delete.Expressions
Assembly: Umbraco.Infrastructure.dll
Syntax
public class DeleteTableExpression : MigrationExpressionBase, IMigrationExpression
Constructors
View SourceDeleteTableExpression(IMigrationContext)
Initializes a new instance of the DeleteTableExpression class.
Declaration
public DeleteTableExpression(IMigrationContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| IMigrationContext | context | An IMigrationContext that provides information and services for the migration operation. |
Properties
View SourceTableName
Gets or sets the name of the table to be deleted.
Declaration
public virtual string? TableName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
View SourceGetSql()
Declaration
protected override string GetSql()
Returns
| Type | Description |
|---|---|
| string |