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

Commit 9469786

Browse files
authored
Update 2. Build out BackEnd and Refactor.md
1 parent 5994564 commit 9469786

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/2. Build out BackEnd and Refactor.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -389,9 +389,9 @@ Okay, now we need to update our `ApplicationDbContext` so Entity Framework knows
389389
modelBuilder.Entity<ConferenceAttendee>()
390390
.HasKey(ca => new { ca.ConferenceID, ca.AttendeeID });
391391

392-
// Many-to-many: Speaker <-> Session
393-
modelBuilder.Entity<SessionSpeaker>()
394-
.HasKey(ss => new { ss.SessionId, ss.SpeakerId});
392+
// Many-to-many: Session <-> Attendee
393+
modelBuilder.Entity<SessionAttendee>()
394+
.HasKey(ca => new { ca.SessionID, ca.AttendeeID });
395395

396396
// Many-to-many: Speaker <-> Session
397397
modelBuilder.Entity<SessionSpeaker>()

0 commit comments

Comments
 (0)