Interface ICreateForeignKeyCascadeSyntax
Defines the cascading rules of a foreign key constraint
Namespace: FluentMigrator.Builders.Create.ForeignKey
Assembly: FluentMigrator.Abstractions.dll
Syntax
public interface ICreateForeignKeyCascadeSyntax
Methods
| Edit this page View SourceOnDelete(Rule)
Defines the DELETE rule
Declaration
ICreateForeignKeyCascadeSyntax OnDelete(Rule rule)
Parameters
Type | Name | Description |
---|---|---|
Rule | rule | The rule to apply to DELETE operations |
Returns
Type | Description |
---|---|
ICreateForeignKeyCascadeSyntax | Specify other rules |
OnDeleteOrUpdate(Rule)
Defines the UPDATE and DELETE rule
Declaration
void OnDeleteOrUpdate(Rule rule)
Parameters
Type | Name | Description |
---|---|---|
Rule | rule | The rule to apply to UPDATE and DELETE operations |
OnUpdate(Rule)
Defines the UPDATE rule
Declaration
ICreateForeignKeyCascadeSyntax OnUpdate(Rule rule)
Parameters
Type | Name | Description |
---|---|---|
Rule | rule | The rule to apply to UPDATE operations |
Returns
Type | Description |
---|---|
ICreateForeignKeyCascadeSyntax | Specify other rules |