Skip to content
This repository was archived by the owner on Jul 10, 2024. It is now read-only.

Commit 5994564

Browse files
authored
Fixed stuff
1 parent 30c657a commit 5994564

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/2. Build out BackEnd and Refactor.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,10 @@ Okay, now we need to update our `ApplicationDbContext` so Entity Framework knows
392392
// Many-to-many: Speaker <-> Session
393393
modelBuilder.Entity<SessionSpeaker>()
394394
.HasKey(ss => new { ss.SessionId, ss.SpeakerId});
395+
396+
// Many-to-many: Speaker <-> Session
397+
modelBuilder.Entity<SessionSpeaker>()
398+
.HasKey(ss => new { ss.SessionId, ss.SpeakerId });
395399

396400
// Many-to-many: Session <-> Tag
397401
modelBuilder.Entity<SessionTag>()

0 commit comments

Comments
 (0)