コード例 #1
0
ファイル: UnitOfWork.cs プロジェクト: SimonAi1801/CoronaTest
        public UnitOfWork(ApplicationDbContext dbContext)
        {
            _dbContext = dbContext;

            Campaigns    = new CampaignRepository(_dbContext);
            TestCenters  = new TestCenterRepository(_dbContext);
            Participants = new ParticipantRepository(_dbContext);
            Examinations = new ExaminationRepository(_dbContext);
        }
コード例 #2
0
ファイル: UnitOfWork.cs プロジェクト: zvonkokolev/CoronaTest
 public UnitOfWork(ApplicationDbContext dbContext)
 {
     _dbContext         = dbContext;
     VerificationTokens = new VerificationTokenRepository(_dbContext);
     Campaigns          = new CampaignRepository(_dbContext);
     TestCenters        = new TestCenterRepository(_dbContext);
     Participants       = new ParticipantRepository(_dbContext);
     Examinations       = new ExaminationRepository(_dbContext);
     AuthUsers          = new AuthUserRepository(_dbContext);
     AuthRoles          = new AuthRoleRepository(_dbContext);
 }
コード例 #3
0
 public UnitOfWork(ApplicationDbContext dbContext)
 {
     _dbContext            = dbContext;
     CampaignRepository    = new CampaignRepository(_dbContext);
     TestCenterRepository  = new TestCenterRepository(_dbContext);
     ParticipantRepository = new ParticipantRepository(_dbContext);
     ExaminationRepository = new ExaminationRepository(_dbContext);
     VerificationTokens    = new TokenVerificationRepository(_dbContext);
     UserRepository        = new UserRepository(_dbContext);
     RoleRepository        = new RoleRepository(_dbContext);
 }