DatabaseForeignKey.OnDelete Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The action performed by the database when a row constrained by this foreign key
is deleted, or null
if there is no action defined.
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)
Property Value
Applies to
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.
Entity Framework