This repository was archived by the owner on Jul 10, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -231,6 +231,27 @@ We're also going to take this opportunity to rename the `Models` directory in th
231
231
}
232
232
}
233
233
```
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
+ ```
234
255
1 . Add an ` Attendee.cs ` class with the following code:
235
256
``` csharp
236
257
using System ;
@@ -242,7 +263,7 @@ We're also going to take this opportunity to rename the `Models` directory in th
242
263
{
243
264
public virtual ICollection <ConferenceAttendee > ConferenceAttendees { get ; set ; }
244
265
245
- public virtual ICollection <Session > Sessions { get ; set ; }
266
+ public virtual ICollection <SessionAttendee > SessionsAttendees { get ; set ; }
246
267
}
247
268
}
248
269
```
You can’t perform that action at this time.
0 commit comments