контейнер
This commit is contained in:
parent
40ddc1509f
commit
9f553b7761
@ -1,4 +1,5 @@
|
|||||||
|
|
||||||
|
using StudentProgressRecord.IRepositories;
|
||||||
using StudentProgressRecord.Repositories;
|
using StudentProgressRecord.Repositories;
|
||||||
using StudentProgressRecord.RepositoryImp;
|
using StudentProgressRecord.RepositoryImp;
|
||||||
using Unity;
|
using Unity;
|
||||||
@ -24,16 +25,6 @@ namespace StudentProgressRecord
|
|||||||
{
|
{
|
||||||
var container = new UnityContainer();
|
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>
|
container.RegisterType<IStatementRepository, StatementRepository>
|
||||||
(new TransientLifetimeManager());
|
(new TransientLifetimeManager());
|
||||||
@ -47,6 +38,9 @@ namespace StudentProgressRecord
|
|||||||
container.RegisterType<ITeacherRepository, TeacherRepository>
|
container.RegisterType<ITeacherRepository, TeacherRepository>
|
||||||
(new TransientLifetimeManager());
|
(new TransientLifetimeManager());
|
||||||
|
|
||||||
|
container.RegisterType<IStudentTransitionRepository, StudentTransitionRepository>
|
||||||
|
(new TransientLifetimeManager());
|
||||||
|
|
||||||
return container;
|
return container;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user