Changeset 20df1a3 for iknow-api/Data/AppDbContext.cs
- Timestamp:
- 09/16/26 14:48:55 (7 days ago)
- Branches:
- master
- Children:
- f7c8acf
- Parents:
- 1b20b22
- File:
-
- 1 edited
-
iknow-api/Data/AppDbContext.cs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
iknow-api/Data/AppDbContext.cs
r1b20b22 r20df1a3 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.
