From bd3a11486d478087fb770b46596afb28babef1a7 Mon Sep 17 00:00:00 2001 From: Polianin Nikita Date: Fri, 26 Jan 2024 07:39:47 +0300 Subject: [PATCH] refactor: correct new reference --- Domain/Schedule/Faculty.cs | 1 + Domain/Schedule/Group.cs | 3 ++- Domain/Schedule/LectureHall.cs | 3 ++- Domain/Schedule/Professor.cs | 2 +- Domain/Schedule/TypeOfOccupation.cs | 2 +- 5 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Domain/Schedule/Faculty.cs b/Domain/Schedule/Faculty.cs index 12dbcbe..cf87fa7 100644 --- a/Domain/Schedule/Faculty.cs +++ b/Domain/Schedule/Faculty.cs @@ -9,5 +9,6 @@ public class Faculty public int? CampusId { get; set; } public Campus? Campus { get; set; } + public List? Groups { get; set; } } \ No newline at end of file diff --git a/Domain/Schedule/Group.cs b/Domain/Schedule/Group.cs index 44c6b95..a27a819 100644 --- a/Domain/Schedule/Group.cs +++ b/Domain/Schedule/Group.cs @@ -9,5 +9,6 @@ public class Group public int? FacultyId { get; set; } public Faculty? Faculty { get; set; } - public List? Days { get; set; } + + public List? Lessons { get; set; } } \ No newline at end of file diff --git a/Domain/Schedule/LectureHall.cs b/Domain/Schedule/LectureHall.cs index 70b7249..855dc8c 100644 --- a/Domain/Schedule/LectureHall.cs +++ b/Domain/Schedule/LectureHall.cs @@ -7,7 +7,8 @@ public class LectureHall public int Id { get; set; } public required string Name { get; set; } - public List? ProfessorToLessons { get; set; } public int CampusId { get; set; } public Campus? Campus { get; set; } + + public List? LessonAssociations { get; set; } } \ No newline at end of file diff --git a/Domain/Schedule/Professor.cs b/Domain/Schedule/Professor.cs index 09309f8..0b0d710 100644 --- a/Domain/Schedule/Professor.cs +++ b/Domain/Schedule/Professor.cs @@ -8,5 +8,5 @@ public class Professor public required string Name { get; set; } public string? AltName { get; set; } - public List? ProfessorToLesson { get; set; } + public List? LessonAssociations { get; set; } } \ No newline at end of file diff --git a/Domain/Schedule/TypeOfOccupation.cs b/Domain/Schedule/TypeOfOccupation.cs index f7aeeb3..a2152a8 100644 --- a/Domain/Schedule/TypeOfOccupation.cs +++ b/Domain/Schedule/TypeOfOccupation.cs @@ -8,5 +8,5 @@ public class TypeOfOccupation public required string ShortName { get; set; } public string? FullName { get; set; } - public List? Lessons { get; set; } + public List? Lessons { get; set; } } \ No newline at end of file