Skip to content

Commit

Permalink
Update ManyToManyShared.cs (#4125)
Browse files Browse the repository at this point in the history
  • Loading branch information
xXTraceXx authored Nov 15, 2022
1 parent 6ed9db0 commit 49ecf53
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)
j => j
.HasOne<Tag>()
.WithMany()
.HasForeignKey("TagId")
.HasForeignKey("TagsId")
.HasConstraintName("FK_PostTag_Tags_TagId")
.OnDelete(DeleteBehavior.Cascade),
j => j
.HasOne<Post>()
.WithMany()
.HasForeignKey("PostId")
.HasForeignKey("PostsId")
.HasConstraintName("FK_PostTag_Posts_PostId")
.OnDelete(DeleteBehavior.ClientCascade));
#endregion
Expand All @@ -88,4 +88,4 @@ public class Tag

public ICollection<Post> Posts { get; set; }
}
#endregion
#endregion

0 comments on commit 49ecf53

Please sign in to comment.