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

Commit 1a83316

Browse files
AndriySvyryddavidfowl
authored andcommitted
Add the missing SessionAttendee to Session 2 (#73)
1 parent 068d2d5 commit 1a83316

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

docs/2. Build out BackEnd and Refactor.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,27 @@ We're also going to take this opportunity to rename the `Models` directory in th
231231
}
232232
}
233233
```
234+
1. Add an `SessionAttendee.cs` class with the following code:
235+
```csharp
236+
using System;
237+
using System.Collections.Generic;
238+
using System.Linq;
239+
using System.Threading.Tasks;
240+
241+
namespace BackEnd.Data
242+
{
243+
public class SessionAttendee
244+
{
245+
public int SessionID { get; set; }
246+
247+
public Session Session { get; set; }
248+
249+
public int AttendeeID { get; set; }
250+
251+
public Attendee Attendee { get; set; }
252+
}
253+
}
254+
```
234255
1. Add an `Attendee.cs` class with the following code:
235256
```csharp
236257
using System;
@@ -242,7 +263,7 @@ We're also going to take this opportunity to rename the `Models` directory in th
242263
{
243264
public virtual ICollection<ConferenceAttendee> ConferenceAttendees { get; set; }
244265

245-
public virtual ICollection<Session> Sessions { get; set; }
266+
public virtual ICollection<SessionAttendee> SessionsAttendees { get; set; }
246267
}
247268
}
248269
```

0 commit comments

Comments
 (0)