Class DeleteColumnExpression
Represents an expression to delete a column from a database table.
Namespace: Umbraco.Cms.Infrastructure.Migrations.Expressions.Delete.Expressions
Assembly: Umbraco.Infrastructure.dll
Syntax
public class DeleteColumnExpression : MigrationExpressionBase, IMigrationExpression
Constructors
View SourceDeleteColumnExpression(IMigrationContext)
Initializes a new instance of the DeleteColumnExpression class, which is used to define a column deletion operation within a database migration.
Declaration
public DeleteColumnExpression(IMigrationContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| IMigrationContext | context | The IMigrationContext providing migration-specific information and services. |
Properties
View SourceColumnNames
Gets or sets the collection of column names that are to be deleted from the table.
Declaration
public ICollection<string> ColumnNames { get; set; }
Property Value
| Type | Description |
|---|---|
| ICollection<string> |
TableName
Gets or sets the name of the table from which the column will 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 |