Share via


SqlServerOnDeleteConvention.GetTargetDeleteBehavior Method

Definition

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

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

Parameters

foreignKey
IConventionForeignKey

The foreign key.

Returns

Applies to