File tree Expand file tree Collapse file tree
entity-framework/core/managing-schemas/scaffolding
samples/core/Miscellaneous/NewInEFCore6 Expand file tree Collapse file tree Original file line number Diff line number Diff 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");
Original file line number Diff line number Diff 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" ) ;
You can’t perform that action at this time.
0 commit comments