|
Last change
on this file since 2d64b2e was c2f79d7, checked in by Stefan-Saveski <stefan@…>, 10 months ago |
|
Refactor and enhance application structure
Enhanced error handling in AuthController with detailed exception handling for user registration. Updated UserDTO to improve JSON serialization and renamed enums for clarity. Introduced new entities (Major, PassedSubject, etc.) and seeded initial data in AppDbContext.
Replaced legacy migrations with 20251208203846_InitialCreate, reflecting the updated schema. Fixed typographical errors and improved JSON serialization in Program.cs with case-insensitive property matching and enum handling.
Refactored repository interfaces for better null safety. Improved debugging in AuthService and updated connection strings. Added the PassedSubject entity and cleaned up redundant code and unused imports for better maintainability.
|
-
Property mode
set to
100644
|
|
File size:
609 bytes
|
| Line | |
|---|
| 1 | namespace iknow_api.Models
|
|---|
| 2 | {
|
|---|
| 3 | public class SemesterSubject
|
|---|
| 4 | {
|
|---|
| 5 | public int Id { get; set; }
|
|---|
| 6 |
|
|---|
| 7 | public int UserId { get; set; }
|
|---|
| 8 | public int EnrolledSemesterId { get; set; }
|
|---|
| 9 | public int SubjectId { get; set; }
|
|---|
| 10 | public int ProfessorId { get; set; }
|
|---|
| 11 |
|
|---|
| 12 | public User? User { get; set; }
|
|---|
| 13 | public EnrolledSemesters? EnrolledSemester { get; set; }
|
|---|
| 14 | public Subject? Subject { get; set; }
|
|---|
| 15 | public User? Professor { get; set; }
|
|---|
| 16 | public PassedSubject? PassedSubject { get; set; }
|
|---|
| 17 | }
|
|---|
| 18 | } |
|---|
Note:
See
TracBrowser
for help on using the repository browser.