예제 #1
0
 public CompanyUnitOfWork(CompanyContext context)
 {
     this.context = context;
     Employee     = new RepositoryEmployee(context);
     Department   = new RepositoryDepartment(context);
     Task         = new RepositoryTask(context);
 }
예제 #2
0
 public StudentsUnitOfWork(StudentsContext context)
 {
     this.context = context;
     Department   = new RepositoryDepartment(context);
     Student      = new RepositoryStudent(context);
     Subject      = new RepositorySubject(context);
 }
 public UnitOfWorkInformation(InformationDbContext projectDbContext)
 {
     m_dbContext = projectDbContext;
     Contact     = new RepositoryContact(m_dbContext);
     Department  = new RepositoryDepartment(m_dbContext);
     ID          = new RepositoryID(m_dbContext);
     Intern      = new RepositoryIntern(m_dbContext);
     Personel    = new RepositoryPersonel(m_dbContext);
     Volunteer   = new RepositoryVolunteer(m_dbContext);
     Offers      = new RepositoryBusinessOffer(m_dbContext);
 }