refactor: move database-related projects to separate folder
This commit is contained in:
Application/Common/Mappings
SqlData
Application
Application.csprojDependencyInjection.cs
Common
Cqrs
Campus/Queries
GetCampusBasicInfoList
CampusBasicInfoDto.csCampusBasicInfoVm.csGetCampusBasicInfoListQuery.csGetCampusBasicInfoListQueryHandler.cs
GetCampusDetails
Discipline/Queries
GetDisciplineDetails
GetDisciplineList
Faculty/Queries
GetFacultyDetails
GetFacultyList
Group/Queries
GetGroupDetails
GetGroupList
LectureHall/Queries
GetLectureHallDetails
GetLectureHallList
Professor/Queries
GetProfessorDetails
GetProfessorList
Schedule/Queries/GetScheduleList
Interfaces/DbContexts
Domain
14
SqlData/Domain/Schedule/Campus.cs
Normal file
14
SqlData/Domain/Schedule/Campus.cs
Normal file
@ -0,0 +1,14 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Mirea.Api.DataAccess.Domain.Schedule;
|
||||
|
||||
public class Campus
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public required string CodeName { get; set; }
|
||||
public string? FullName { get; set; }
|
||||
public string? Address { get; set; }
|
||||
|
||||
public List<Faculty>? Faculties { get; set; }
|
||||
public List<LectureHall>? LectureHalls { get; set; }
|
||||
}
|
11
SqlData/Domain/Schedule/Discipline.cs
Normal file
11
SqlData/Domain/Schedule/Discipline.cs
Normal file
@ -0,0 +1,11 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Mirea.Api.DataAccess.Domain.Schedule;
|
||||
|
||||
public class Discipline
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public required string Name { get; set; }
|
||||
|
||||
public List<Lesson>? Lessons { get; set; }
|
||||
}
|
14
SqlData/Domain/Schedule/Faculty.cs
Normal file
14
SqlData/Domain/Schedule/Faculty.cs
Normal file
@ -0,0 +1,14 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Mirea.Api.DataAccess.Domain.Schedule;
|
||||
|
||||
public class Faculty
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public required string Name { get; set; }
|
||||
|
||||
public int? CampusId { get; set; }
|
||||
public Campus? Campus { get; set; }
|
||||
|
||||
public List<Group>? Groups { get; set; }
|
||||
}
|
14
SqlData/Domain/Schedule/Group.cs
Normal file
14
SqlData/Domain/Schedule/Group.cs
Normal file
@ -0,0 +1,14 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Mirea.Api.DataAccess.Domain.Schedule;
|
||||
|
||||
public class Group
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public required string Name { get; set; }
|
||||
|
||||
public int? FacultyId { get; set; }
|
||||
public Faculty? Faculty { get; set; }
|
||||
|
||||
public List<Lesson>? Lessons { get; set; }
|
||||
}
|
14
SqlData/Domain/Schedule/LectureHall.cs
Normal file
14
SqlData/Domain/Schedule/LectureHall.cs
Normal file
@ -0,0 +1,14 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Mirea.Api.DataAccess.Domain.Schedule;
|
||||
|
||||
public class LectureHall
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public required string Name { get; set; }
|
||||
|
||||
public int CampusId { get; set; }
|
||||
public Campus? Campus { get; set; }
|
||||
|
||||
public List<LessonAssociation>? LessonAssociations { get; set; }
|
||||
}
|
21
SqlData/Domain/Schedule/Lesson.cs
Normal file
21
SqlData/Domain/Schedule/Lesson.cs
Normal file
@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Mirea.Api.DataAccess.Domain.Schedule;
|
||||
|
||||
public class Lesson
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public bool IsEven { get; set; }
|
||||
public DayOfWeek DayOfWeek { get; set; }
|
||||
public int PairNumber { get; set; }
|
||||
public bool? IsExcludedWeeks { get; set; }
|
||||
|
||||
public int GroupId { get; set; }
|
||||
public Group? Group { get; set; }
|
||||
public int DisciplineId { get; set; }
|
||||
public Discipline? Discipline { get; set; }
|
||||
|
||||
public List<LessonAssociation>? LessonAssociations { get; set; }
|
||||
public List<SpecificWeek>? SpecificWeeks { get; set; }
|
||||
}
|
16
SqlData/Domain/Schedule/LessonAssociation.cs
Normal file
16
SqlData/Domain/Schedule/LessonAssociation.cs
Normal file
@ -0,0 +1,16 @@
|
||||
namespace Mirea.Api.DataAccess.Domain.Schedule;
|
||||
|
||||
public class LessonAssociation
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string? LinkToMeet { get; set; }
|
||||
|
||||
public int TypeOfOccupationId { get; set; }
|
||||
public TypeOfOccupation? TypeOfOccupation { get; set; }
|
||||
public int LessonId { get; set; }
|
||||
public Lesson? Lesson { get; set; }
|
||||
public int? ProfessorId { get; set; }
|
||||
public Professor? Professor { get; set; }
|
||||
public int? LectureHallId { get; set; }
|
||||
public LectureHall? LectureHall { get; set; }
|
||||
}
|
12
SqlData/Domain/Schedule/Professor.cs
Normal file
12
SqlData/Domain/Schedule/Professor.cs
Normal file
@ -0,0 +1,12 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Mirea.Api.DataAccess.Domain.Schedule;
|
||||
|
||||
public class Professor
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public required string Name { get; set; }
|
||||
public string? AltName { get; set; }
|
||||
|
||||
public List<LessonAssociation>? LessonAssociations { get; set; }
|
||||
}
|
10
SqlData/Domain/Schedule/SpecificWeek.cs
Normal file
10
SqlData/Domain/Schedule/SpecificWeek.cs
Normal file
@ -0,0 +1,10 @@
|
||||
namespace Mirea.Api.DataAccess.Domain.Schedule;
|
||||
|
||||
public class SpecificWeek
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public int WeekNumber { get; set; }
|
||||
|
||||
public int LessonId { get; set; }
|
||||
public Lesson? Lesson { get; set; }
|
||||
}
|
11
SqlData/Domain/Schedule/TypeOfOccupation.cs
Normal file
11
SqlData/Domain/Schedule/TypeOfOccupation.cs
Normal file
@ -0,0 +1,11 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Mirea.Api.DataAccess.Domain.Schedule;
|
||||
|
||||
public class TypeOfOccupation
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public required string ShortName { get; set; }
|
||||
|
||||
public List<LessonAssociation>? Lessons { get; set; }
|
||||
}
|
Reference in New Issue
Block a user