예제 #1
0
 public UnitOfWork()
 {
     _context       = new ApplicationDbContext();
     Projects       = new ProjectRepository(_context);
     Practices      = new PracticeRepository(_context);
     Users          = new UserRepository(_context);
     PracticeUsers  = new PracticeUserRepository(_context);
     Features       = new FeatureRepository(_context);
     FeatureUsers   = new FeatureUserRepository(_context);
     Experiences    = new ExperienceRepository(_context);
     Communications = new CommunicationRespository(_context);
     Countries      = new CountryRepository(_context);
 }
예제 #2
0
 public UnitOfWork()
 {
     _context = new ApplicationDbContext();
     Projects = new ProjectRepository(_context);
     Practices = new PracticeRepository(_context);
     Users = new UserRepository(_context);
     PracticeUsers = new PracticeUserRepository(_context);
     Features = new FeatureRepository(_context);
     FeatureUsers = new FeatureUserRepository(_context);
     Experiences = new ExperienceRepository(_context);
     Communications = new CommunicationRespository(_context);
     Countries = new CountryRepository(_context);
 }