Changeset 1a9c843 for iknow-api/Data/AppDbContext.cs
- Timestamp:
- 09/23/26 13:29:06 (11 hours ago)
- Branches:
- master
- Children:
- e7bafc0
- Parents:
- a12988e (diff), f7c8acf (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
iknow-api/Data/AppDbContext.cs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
iknow-api/Data/AppDbContext.cs
ra12988e r1a9c843 290 290 e.HasKey(p => p.Id); 291 291 e.Property(p => p.Id).HasColumnName("id"); 292 e.Property(p => p.UserId).HasColumnName("user_id");293 292 e.Property(p => p.EnrollmentInfoId).HasColumnName("enrollment_id"); 294 293 e.Property(p => p.Amount).HasColumnName("amount"); 295 294 296 e.HasOne(p => p.User) 297 .WithMany(u => u.Payments) 298 .HasForeignKey(p => p.UserId) 299 .OnDelete(DeleteBehavior.Cascade); 300 295 // No user_id: the student comes from the enrolment. Removing it 296 // was the BCNF fix from Phase 5 (enrolled_id -> user_id). 301 297 e.HasOne(p => p.EnrolledSemesters) 302 298 .WithMany(es => es.Users)
Note:
See TracChangeset
for help on using the changeset viewer.
