Class RenameTableBuilder
Provides a builder for constructing expressions to rename database tables during migrations.
Namespace: Umbraco.Cms.Infrastructure.Migrations.Expressions.Rename.Table
Assembly: Umbraco.Infrastructure.dll
Syntax
public class RenameTableBuilder : ExpressionBuilderBase<RenameTableExpression>, IRenameTableBuilder, IFluentBuilder, IExecutableBuilder
Constructors
View SourceRenameTableBuilder(RenameTableExpression)
Initializes a new instance of the RenameTableBuilder class.
Declaration
public RenameTableBuilder(RenameTableExpression expression)
Parameters
| Type | Name | Description |
|---|---|---|
| RenameTableExpression | expression | The RenameTableExpression that defines the details of the table rename operation. |
Methods
View SourceDo()
Executes.
Declaration
public void Do()
To(string)
Sets the new name for the table to be renamed.
Declaration
public IExecutableBuilder To(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The new name of the table. |
Returns
| Type | Description |
|---|---|
| IExecutableBuilder | An IExecutableBuilder that can execute the rename operation. |