Search Results for

    Show / Hide Table of Contents
    View Source

    Class UpdateBuilder

    Provides methods to construct and execute update expressions used in database schema migrations. This builder is typically used to define how data should be updated during a migration process.

    Inheritance
    object
    Namespace: Umbraco.Cms.Infrastructure.Migrations.Expressions.Update
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public class UpdateBuilder : IUpdateBuilder, IFluentBuilder

    Constructors

    View Source

    UpdateBuilder(IMigrationContext)

    Initializes a new instance of the UpdateBuilder class using the specified migration context.

    Declaration
    public UpdateBuilder(IMigrationContext context)
    Parameters
    Type Name Description
    IMigrationContext context

    The IMigrationContext that provides context information for the migration operation.

    Methods

    View Source

    Table(string)

    Specifies the table to update in the update expression.

    Declaration
    public IUpdateTableBuilder Table(string tableName)
    Parameters
    Type Name Description
    string tableName

    The name of the table to update.

    Returns
    Type Description
    IUpdateTableBuilder

    An IUpdateTableBuilder instance for further configuration of the update operation.

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