Share via


CascadeDeleteConvention.GetTargetDeleteBehavior(IConventionForeignKey) Method

Definition

Returns the delete behavior to set for the given foreign key.

protected virtual Microsoft.EntityFrameworkCore.DeleteBehavior GetTargetDeleteBehavior (Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey foreignKey);
abstract member GetTargetDeleteBehavior : Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey -> Microsoft.EntityFrameworkCore.DeleteBehavior
override this.GetTargetDeleteBehavior : Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey -> Microsoft.EntityFrameworkCore.DeleteBehavior
Protected Overridable Function GetTargetDeleteBehavior (foreignKey As IConventionForeignKey) As DeleteBehavior

Parameters

foreignKey
IConventionForeignKey

The foreign key.

Returns

Applies to