Class AlterTableExpression
Represents an expression to alter an existing table in the database schema.
Namespace: Umbraco.Cms.Infrastructure.Migrations.Expressions.Alter.Expressions
Assembly: Umbraco.Infrastructure.dll
Syntax
public class AlterTableExpression : MigrationExpressionBase, IMigrationExpression
Constructors
View SourceAlterTableExpression(IMigrationContext)
Initializes a new instance of the AlterTableExpression class with the specified migration context.
Declaration
public AlterTableExpression(IMigrationContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| IMigrationContext | context | The IMigrationContext to be used for the migration. |
Properties
View SourceTableName
Gets or sets the name of the table to be altered.
Declaration
public virtual string? TableName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
View SourceGetSql()
Declaration
protected override string GetSql()
Returns
| Type | Description |
|---|---|
| string |