public UnitOfWork(AppDbContext context)
 {
     _context      = context;
     Courts        = new CourtRepository(context);
     Jurisdictions = new JurisdictionRepository(context);
     Cases         = new CaseRepository(context);
     Litigants     = new LitigantRepository(context);
 }
Exemplo n.º 2
0
 public UnitOfWork(ProjectContext context)
 {
     _context               = context;
     CodedAnswers           = new CodedAnswerRepository(_context);
     CodedCategoryQuestions = new CodedCategoryQuestionRepository(_context);
     CodedQuestions         = new CodedQuestionRepository(_context);
     CodedQuestionBases     = new CodedQuestionBaseRepository(_context);
     CodedQuestionFlags     = new CodedQuestionFlagRepository(_context);
     FlagBases              = new FlagBaseRepository(_context);
     Jurisdictions          = new JurisdictionRepository(_context);
     Projects               = new ProjectRepository(_context);
     ProjectJurisdictions   = new ProjectJurisdictionRepository(_context);
     Protocols              = new ProtocolRepository(_context);
     Schemes             = new SchemeRepository(_context);
     SchemeAnswers       = new SchemeAnswerRepository(_context);
     SchemeQuestions     = new SchemeQuestionRepository(_context);
     SchemeQuestionFlags = new SchemeQuestionFlagRepository(_context);
     Users = new UserRepository(_context);
     ValidatedQuestions         = new ValidatedQuestionRepository(_context);
     ValidatedCategoryQuestions = new ValidatedCategoryQuestionRepository(_context);
     ValidatedQuestionBases     = new ValidatedQuestionBaseRepository(_context);
 }