контейнер

This commit is contained in:
funa4i 2024-10-29 13:51:51 +04:00
parent 40ddc1509f
commit 9f553b7761

View File

@ -1,4 +1,5 @@
using StudentProgressRecord.IRepositories;
using StudentProgressRecord.Repositories;
using StudentProgressRecord.RepositoryImp;
using Unity;
@ -24,16 +25,6 @@ namespace StudentProgressRecord
{
var container = new UnityContainer();
container.RegisterType<IDepartmentRepository, DepartmentRepository>
(new TransientLifetimeManager());
container.RegisterType<IFacultyRepository, FacultyRepository>
(new TransientLifetimeManager());
container.RegisterType<IGroupRepository, GroupRepository>
(new TransientLifetimeManager());
container.RegisterType<IStatementRepository, StatementRepository>
(new TransientLifetimeManager());
@ -47,6 +38,9 @@ namespace StudentProgressRecord
container.RegisterType<ITeacherRepository, TeacherRepository>
(new TransientLifetimeManager());
container.RegisterType<IStudentTransitionRepository, StudentTransitionRepository>
(new TransientLifetimeManager());
return container;
}