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)

属性值

适用于