共用方式為


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

外部索引鍵。

傳回

適用於