Skip to content

Commit

Permalink
Update workaround for TPT cascade paths mitigation (#4072)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajcvickers committed Oct 6, 2022
1 parent ca55a9d commit 7507400
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,8 @@ Or to change the implicit relationship created for the TPT mapping:

```csharp
modelBuilder
.Entity<Post>()
.HasOne<FeaturedPost>()
.Entity<FeaturedPost>()
.HasOne<Post>()
.WithOne()
.HasForeignKey<FeaturedPost>(e => e.Id)
.OnDelete(DeleteBehavior.ClientCascade);
Expand Down

0 comments on commit 7507400

Please sign in to comment.