Class RenameTableExpression
Represents a Rename Table expression.
Namespace: Umbraco.Cms.Infrastructure.Migrations.Expressions.Rename.Expressions
Assembly: Umbraco.Infrastructure.dll
Syntax
public class RenameTableExpression : MigrationExpressionBase, IMigrationExpression
Constructors
View SourceRenameTableExpression(IMigrationContext)
Initializes a new instance of the RenameTableExpression class, which is used to define a table rename operation within a migration.
Declaration
public RenameTableExpression(IMigrationContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| IMigrationContext | context | The migration context that provides information and services for the migration process. |
Properties
View SourceNewName
Gets or sets the target name.
Declaration
public virtual string? NewName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
OldName
Gets or sets the source name.
Declaration
public virtual string? OldName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
View SourceGetSql()
Declaration
protected override string GetSql()
Returns
| Type | Description |
|---|---|
| string |