CascadeDeleteConvention.GetTargetDeleteBehavior(IConventionForeignKey) 方法

定义

返回要为给定外键设置的删除行为。

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

参数

foreignKey
IConventionForeignKey

外键。

返回

适用于