IUpdateAdapter.CascadeDelete Method
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.
Forces immediate cascading deletion of child/dependent entities when they are either severed from a required parent/principal entity, or the required parent/principal entity is itself deleted. See DeleteBehavior.
public void CascadeDelete (Microsoft.EntityFrameworkCore.Update.IUpdateEntry entry, System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IForeignKey> foreignKeys = default);
public void CascadeDelete (Microsoft.EntityFrameworkCore.Update.IUpdateEntry entry, System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IForeignKey>? foreignKeys = default);
abstract member CascadeDelete : Microsoft.EntityFrameworkCore.Update.IUpdateEntry * seq<Microsoft.EntityFrameworkCore.Metadata.IForeignKey> -> unit
Public Sub CascadeDelete (entry As IUpdateEntry, Optional foreignKeys As IEnumerable(Of IForeignKey) = Nothing)
Parameters
- entry
- IUpdateEntry
The entry.
- foreignKeys
- IEnumerable<IForeignKey>
The foreign keys to consider when cascading.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework