public UnitOfWork(JobDBContext _context)
        {
            context = _context;

            Awards            = new AwardRepository(context);
            FamilyMembers     = new FamilyMemberRepository(context);
            FamilyMemberRoles = new FamilyMemberRoleRepository(context);
            Families          = new FamilyRepository(context);
            Goals             = new GoalRepository(context);
            JobCategories     = new JobCategoryRepository(context);
            Jobs         = new JobRepository(context);
            JobTemplates = new JobTemplateRepository(context);
            MemberJobs   = new MemberJobRepository(context);
            MemberGoals  = new MemberGoalRepository(context);
        }
Beispiel #2
0
 public UnitOfWork(ApplicationDbContext context)
 {
     _context      = context;
     Films         = new FilmRepository(_context);
     Genres        = new GenreRepository(_context);
     Users         = new UserRepository(_context);
     Ratings       = new RatingRepository(_context);
     Notifications = new NotificationRepository(_context);
     Awards        = new AwardRepository(_context);
     Persons       = new PersonRepository(_context);
     News          = new NewsRepository(_context);
     ManagerHelper = new UserManagerHelper(_context);
     Reviews       = new ReviewRepository(_context);
     Countries     = new CountryRepository(_context);
 }