Skip to content

Commit 5813396

Browse files
Merge pull request #5373 from dotnet/main
Auto Publish – main to live - 2026-06-02 05:00 UTC
2 parents c84fd45 + 058a5fc commit 5813396

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

entity-framework/core/managing-schemas/scaffolding/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -419,8 +419,8 @@ entity.HasMany(d => d.Tags)
419419
.WithMany(p => p.Posts)
420420
.UsingEntity<Dictionary<string, object>>(
421421
"PostTag",
422-
l => l.HasOne<Tag>().WithMany().HasForeignKey("PostsId"),
423-
r => r.HasOne<Post>().WithMany().HasForeignKey("TagsId"),
422+
r => r.HasOne<Tag>().WithMany().HasForeignKey("TagsId"),
423+
l => l.HasOne<Post>().WithMany().HasForeignKey("PostsId"),
424424
j =>
425425
{
426426
j.HasKey("PostsId", "TagsId");

samples/core/Miscellaneous/NewInEFCore6/ScaffoldingSample.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)
116116
.WithMany(p => p.Posts)
117117
.UsingEntity<Dictionary<string, object>>(
118118
"PostTag",
119-
l => l.HasOne<Tag>().WithMany().HasForeignKey("PostsId"),
120-
r => r.HasOne<Post>().WithMany().HasForeignKey("TagsId"),
119+
r => r.HasOne<Tag>().WithMany().HasForeignKey("TagsId"),
120+
l => l.HasOne<Post>().WithMany().HasForeignKey("PostsId"),
121121
j =>
122122
{
123123
j.HasKey("PostsId", "TagsId");

0 commit comments

Comments
 (0)