Search Results for

    Show / Hide Table of Contents
    View Source

    Class DeleteColumnBuilder

    Represents a builder used to define and execute the deletion of a column from a database table during a migration.

    Inheritance
    object
    ExpressionBuilderBase<DeleteColumnExpression>
    Namespace: Umbraco.Cms.Infrastructure.Migrations.Expressions.Delete.Column
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public class DeleteColumnBuilder : ExpressionBuilderBase<DeleteColumnExpression>, IDeleteColumnBuilder, IFluentBuilder

    Constructors

    View Source

    DeleteColumnBuilder(DeleteColumnExpression)

    Initializes a new instance of the DeleteColumnBuilder class.

    Declaration
    public DeleteColumnBuilder(DeleteColumnExpression expression)
    Parameters
    Type Name Description
    DeleteColumnExpression expression

    The DeleteColumnExpression that defines the column to delete.

    Methods

    View Source

    Column(string)

    Specifies the column to delete in the current delete operation.

    Declaration
    public IDeleteColumnBuilder Column(string columnName)
    Parameters
    Type Name Description
    string columnName

    The name of the column to be deleted.

    Returns
    Type Description
    IDeleteColumnBuilder

    The current IDeleteColumnBuilder instance for method chaining.

    View Source

    FromTable(string)

    Specifies the table that contains the column to be deleted.

    Declaration
    public IExecutableBuilder FromTable(string tableName)
    Parameters
    Type Name Description
    string tableName

    The name of the table containing the column to delete.

    Returns
    Type Description
    IExecutableBuilder

    An IExecutableBuilder that can be used to execute the delete column operation.

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX