Closed
Description
openedon Jul 11, 2018
This entire article is about the impact of various OnDelete behaviors, but nowhere on this page is any instruction or example of how to set up / configure this behavior! This is essential information. We need examples, like:
modelBuilder.Entity<BlogPost>()
.HasOne(l => l.Blog)
.WithMany(m => m.BlogPosts)
.OnDelete(DeleteBehavior.Restrict);
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: 3ed1b8a1-fa32-e147-ae0f-76b3620473f9
- Version Independent ID: 10ce2d9f-8284-a509-5fed-669abfb9d8ae
- Content: Cascade Delete - EF Core
- Content Source: entity-framework/core/saving/cascade-delete.md
- Product: entity-framework
- GitHub Login: @rowanmiller
- Microsoft Alias: divega
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment