Search Results for

    Show / Hide Table of Contents

    Interface IForeignKeyCascadeSyntax<TNext, TNextFk>

    Base interface for specifying the foreign key cascading

    Namespace: FluentMigrator.Builders
    Assembly: FluentMigrator.Abstractions.dll
    Syntax
    public interface IForeignKeyCascadeSyntax<TNext, TNextFk> where TNext : IFluentSyntax where TNextFk : IFluentSyntax
    Type Parameters
    Name Description
    TNext

    The interface for the next step after specifying the cascade rules for both DELETE and UPDATE

    TNextFk

    The interface for the next step after specifying the cascade rule for either DELETE or UPDATE

    Methods

    | Edit this page View Source

    OnDelete(Rule)

    Specify the behavior for DELETEs

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

    The rule to apply for DELETEs

    Returns
    Type Description
    TNextFk

    The next step

    | Edit this page View Source

    OnDeleteOrUpdate(Rule)

    Specify the behavior for UPDATEs and DELETEs

    Declaration
    TNext OnDeleteOrUpdate(Rule rule)
    Parameters
    Type Name Description
    Rule rule

    The rule to apply for UPDATEs and DELETEs

    Returns
    Type Description
    TNext

    The next step

    | Edit this page View Source

    OnUpdate(Rule)

    Specify the behavior for UPDATEs

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

    The rule to apply for UPDATEs

    Returns
    Type Description
    TNextFk

    The next step

    • Edit this page
    • View Source
    In this article
    Back to top
    Copyright © 2018 Fluent Migrator Project
    Generated by DocFX
    Creative Commons License
    FluentMigrator Documentation by FluentMigrator Project is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.