コード例 #1
0
        public UnitOfWork(AuditDbContext dbContext)
        {
            auditDbContext = dbContext;

            if (AuditPortfolios == null)
            {
                AuditPortfolios = new AuditPortfolioRepository(auditDbContext);
            }
            if (AuditProfiles == null)
            {
                AuditProfiles = new AuditorProfileRepository(auditDbContext);
            }
        }
コード例 #2
0
 public UnitOfWork(AuditDbContext dbContext)
 {
     auditDbContext = dbContext;
 }