Skip to content

Document how EF and database cascade behaviors work together #828

Closed

Description

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions