Search Results for

    Show / Hide Table of Contents
    View Source

    Class RenameTableExpression

    Represents a Rename Table expression.

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

    Constructors

    View Source

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

    NewName

    Gets or sets the target name.

    Declaration
    public virtual string? NewName { get; set; }
    Property Value
    Type Description
    string
    View Source

    OldName

    Gets or sets the source name.

    Declaration
    public virtual string? OldName { 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