DepartmentProject/DepartmentPortal/Department/DepartmentDatabaseImplementation.csproj/DepartmentImplementationDependencyRegistration.cs

47 lines
2.3 KiB
C#

using DepartmentContract.Services.IGenericEntityService;
using DepartmentDatabaseImplementation.Implementations;
using DepartmentDatabaseImplementation.Implementations.AbstractGenerticEntityService;
using ToolsModule.BusinessLogics;
using ToolsModule.Interfaces;
namespace DepartmentDatabaseImplementation
{
public class DepartmentImplementationDependencyRegistration : IDependencyRegistration
{
public void RegisterServices()
{
DependencyManager.Instance.RegisterType<IPostService, PostService>();
DependencyManager.Instance.RegisterType<IEmployeeService, EmployeeService>();
DependencyManager.Instance.RegisterType<IEmployeePostService, EmployeePostService>();
DependencyManager.Instance.RegisterType<IClassroomService, ClassroomService>();
DependencyManager.Instance.RegisterType<IDisciplineBlockService, DisciplineBlockService>();
DependencyManager.Instance.RegisterType<IDisciplineService, DisciplineService>();
DependencyManager.Instance.RegisterType<ILecturerAcademicDegreeService, LecturerAcademicDegreeService>();
DependencyManager.Instance.RegisterType<ILecturerAcademicRankService, LecturerAcademicRankService>();
DependencyManager.Instance.RegisterType<ILecturerService, LecturerService>();
DependencyManager.Instance.RegisterType<ILecturerPostService, LecturerPostService>();
DependencyManager.Instance.RegisterType<IEducationDirectionService, EducationDirectionService>();
DependencyManager.Instance.RegisterType<ITimeNormService, TimeNormService>();
DependencyManager.Instance.RegisterType<IAcademicPlanService, AcademicPlanService>();
DependencyManager.Instance.RegisterType<IAcademicPlanRecordService, AcademicPlanRecordService>();
DependencyManager.Instance.RegisterType<IAcademicPlanRecordTimeNormHourService, AcademicPlanRecordTimeNormHourService>();
DependencyManager.Instance.RegisterType<IStudentGroupService, StudentGroupService>();
DependencyManager.Instance.RegisterType<IStudentService, StudentService>();
DependencyManager.Instance.RegisterType<IOrderService, OrderService>();
DependencyManager.Instance.RegisterType<IOrderStudentRecordService, OrderStudentRecordService>();
DependencyManager.Instance.RegisterType<IOrderSyncHistoryService, OrderSyncHistoryService>();
DependencyManager.Instance.RegisterType<IOrderSyncHistoryRecordService, OrderSyncHistoryRecordService>();
}
}
}