Search Results for

    Show / Hide Table of Contents
    View Source

    Class DeleteDataBuilder

    Provides a builder for creating delete data migration expressions.

    Inheritance
    object
    ExpressionBuilderBase<DeleteDataExpression>
    Namespace: Umbraco.Cms.Infrastructure.Migrations.Expressions.Delete.Data
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public class DeleteDataBuilder : ExpressionBuilderBase<DeleteDataExpression>, IDeleteDataBuilder, IFluentBuilder, IExecutableBuilder

    Constructors

    View Source

    DeleteDataBuilder(DeleteDataExpression)

    Initializes a new instance of the DeleteDataBuilder class.

    Declaration
    public DeleteDataBuilder(DeleteDataExpression expression)
    Parameters
    Type Name Description
    DeleteDataExpression expression

    The DeleteDataExpression that defines the data to be deleted in the migration.

    Methods

    View Source

    AllRows()

    Specifies that all rows in the target table will be deleted.

    Declaration
    public IExecutableBuilder AllRows()
    Returns
    Type Description
    IExecutableBuilder

    An IExecutableBuilder to execute the delete operation.

    View Source

    Do()

    Executes.

    Declaration
    public void Do()
    View Source

    IsNull(string)

    Specifies that rows with a specified column being null must be deleted.

    Declaration
    public IExecutableBuilder IsNull(string columnName)
    Parameters
    Type Name Description
    string columnName
    Returns
    Type Description
    IExecutableBuilder
    View Source

    Row(object)

    Specifies a row to be deleted.

    Declaration
    public IDeleteDataBuilder Row(object dataAsAnonymousType)
    Parameters
    Type Name Description
    object dataAsAnonymousType
    Returns
    Type Description
    IDeleteDataBuilder
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX