From 49ecf53628bc6a4555e89ffbe19dfffdb82f57d4 Mon Sep 17 00:00:00 2001 From: xXTraceXx <35568560+xXTraceXx@users.noreply.github.com> Date: Tue, 15 Nov 2022 15:14:51 +0100 Subject: [PATCH] Update ManyToManyShared.cs (#4125) --- .../Modeling/Relationships/FluentAPI/ManyToManyShared.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/core/Modeling/Relationships/FluentAPI/ManyToManyShared.cs b/samples/core/Modeling/Relationships/FluentAPI/ManyToManyShared.cs index 1f57677101..47c1c66fad 100644 --- a/samples/core/Modeling/Relationships/FluentAPI/ManyToManyShared.cs +++ b/samples/core/Modeling/Relationships/FluentAPI/ManyToManyShared.cs @@ -59,13 +59,13 @@ protected override void OnModelCreating(ModelBuilder modelBuilder) j => j .HasOne() .WithMany() - .HasForeignKey("TagId") + .HasForeignKey("TagsId") .HasConstraintName("FK_PostTag_Tags_TagId") .OnDelete(DeleteBehavior.Cascade), j => j .HasOne() .WithMany() - .HasForeignKey("PostId") + .HasForeignKey("PostsId") .HasConstraintName("FK_PostTag_Posts_PostId") .OnDelete(DeleteBehavior.ClientCascade)); #endregion @@ -88,4 +88,4 @@ public class Tag public ICollection Posts { get; set; } } -#endregion \ No newline at end of file +#endregion