Search Results for

    Show / Hide Table of Contents
    View Source

    Class AlterTableExpression

    Represents an expression to alter an existing table in the database schema.

    Inheritance
    object
    MigrationExpressionBase
    Namespace: Umbraco.Cms.Infrastructure.Migrations.Expressions.Alter.Expressions
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public class AlterTableExpression : MigrationExpressionBase, IMigrationExpression

    Constructors

    View Source

    AlterTableExpression(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 Source

    TableName

    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 Source

    GetSql()

    Declaration
    protected override string GetSql()
    Returns
    Type Description
    string
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX