контейнер
This commit is contained in:
parent
40ddc1509f
commit
9f553b7761
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user