共用方式為


DatabaseForeignKey.OnDelete 屬性

定義

刪除此外鍵所限制的資料列時,或 null 未定義任何動作時,資料庫所執行的動作。

public virtual Microsoft.EntityFrameworkCore.Migrations.ReferentialAction? OnDelete { get; set; }
member this.OnDelete : Nullable<Microsoft.EntityFrameworkCore.Migrations.ReferentialAction> with get, set
Public Overridable Property OnDelete As Nullable(Of ReferentialAction)

屬性值

適用於