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 SourceOnDelete(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 |
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 |
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 |