Class DeleteColumnBuilder
Represents a builder used to define and execute the deletion of a column from a database table during a migration.
Namespace: Umbraco.Cms.Infrastructure.Migrations.Expressions.Delete.Column
Assembly: Umbraco.Infrastructure.dll
Syntax
public class DeleteColumnBuilder : ExpressionBuilderBase<DeleteColumnExpression>, IDeleteColumnBuilder, IFluentBuilder
Constructors
View SourceDeleteColumnBuilder(DeleteColumnExpression)
Initializes a new instance of the DeleteColumnBuilder class.
Declaration
public DeleteColumnBuilder(DeleteColumnExpression expression)
Parameters
| Type | Name | Description |
|---|---|---|
| DeleteColumnExpression | expression | The DeleteColumnExpression that defines the column to delete. |
Methods
View SourceColumn(string)
Specifies the column to delete in the current delete operation.
Declaration
public IDeleteColumnBuilder Column(string columnName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | columnName | The name of the column to be deleted. |
Returns
| Type | Description |
|---|---|
| IDeleteColumnBuilder | The current IDeleteColumnBuilder instance for method chaining. |
FromTable(string)
Specifies the table that contains the column to be deleted.
Declaration
public IExecutableBuilder FromTable(string tableName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | tableName | The name of the table containing the column to delete. |
Returns
| Type | Description |
|---|---|
| IExecutableBuilder | An IExecutableBuilder that can be used to execute the delete column operation. |