Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IForeignKeyCascadeBuilder<TNext, TNextFk>

    Provides a builder interface for configuring cascade behaviors (such as ON DELETE or ON UPDATE actions) on a foreign key constraint within a migration expression.

    Namespace: Umbraco.Cms.Infrastructure.Migrations.Expressions.Common
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public interface IForeignKeyCascadeBuilder<out TNext, out TNextFk> : IFluentBuilder where TNext : IFluentBuilder where TNextFk : IFluentBuilder
    Type Parameters
    Name Description
    TNext
    TNextFk

    Methods

    View Source

    OnDelete(Rule)

    Specifies a rule on deletes.

    Declaration
    TNextFk OnDelete(Rule rule)
    Parameters
    Type Name Description
    Rule rule
    Returns
    Type Description
    TNextFk
    View Source

    OnDeleteOrUpdate(Rule)

    Specifies a rule on deletes and updates.

    Declaration
    TNext OnDeleteOrUpdate(Rule rule)
    Parameters
    Type Name Description
    Rule rule
    Returns
    Type Description
    TNext
    View Source

    OnUpdate(Rule)

    Specifies the action to take when the referenced primary key is updated.

    Declaration
    TNextFk OnUpdate(Rule rule)
    Parameters
    Type Name Description
    Rule rule

    The rule to apply on update (e.g., cascade, set null, restrict).

    Returns
    Type Description
    TNextFk

    The next foreign key cascade builder.

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