Search Results for

    Show / Hide Table of Contents
    View Source

    Class DeleteDefaultConstraintBuilder

    Implements IDeleteDefaultConstraintOnTableBuilder, IDeleteDefaultConstraintOnColumnBuilder.

    Inheritance
    object
    ExpressionBuilderBase<DeleteDefaultConstraintExpression>
    Namespace: Umbraco.Cms.Infrastructure.Migrations.Expressions.Delete.DefaultConstraint
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public class DeleteDefaultConstraintBuilder : ExpressionBuilderBase<DeleteDefaultConstraintExpression>, IDeleteDefaultConstraintOnTableBuilder, IDeleteDefaultConstraintOnColumnBuilder, IFluentBuilder

    Constructors

    View Source

    DeleteDefaultConstraintBuilder(IMigrationContext, DeleteDefaultConstraintExpression)

    Initializes a new instance of the DeleteDefaultConstraintBuilder class with the specified migration context and delete default constraint expression.

    Declaration
    public DeleteDefaultConstraintBuilder(IMigrationContext context, DeleteDefaultConstraintExpression expression)
    Parameters
    Type Name Description
    IMigrationContext context

    The IMigrationContext to use for the migration operation.

    DeleteDefaultConstraintExpression expression

    The DeleteDefaultConstraintExpression representing the default constraint to be deleted.

    Methods

    View Source

    OnColumn(string)

    Specifies the column from which to delete the default constraint.

    Declaration
    public IExecutableBuilder OnColumn(string columnName)
    Parameters
    Type Name Description
    string columnName

    The name of the column that has the default constraint to be deleted.

    Returns
    Type Description
    IExecutableBuilder

    An Umbraco.Cms.Infrastructure.Migrations.Expressions.IExecutableBuilder to execute the delete operation.

    View Source

    OnTable(string)

    Specifies the table containing the default constraint to delete.

    Declaration
    public IDeleteDefaultConstraintOnColumnBuilder OnTable(string tableName)
    Parameters
    Type Name Description
    string tableName

    The name of the table containing the constraint to delete.

    Returns
    Type Description
    IDeleteDefaultConstraintOnColumnBuilder

    An IDeleteDefaultConstraintOnColumnBuilder that can be used to specify the column.

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