Exemplo n.º 1
0
 /// <summary>
 /// Creates a new unit of work for the various database repositories
 /// </summary>
 public UnitOfWork()
 {
     _entityContext = new JustPressPlayDBEntities();
     _achievementRepo = new AchievementRepository(this);
     _questRepo = new QuestRepository(this);
     _userRepo = new UserRepository(this);
     _systemRepo = new SystemRepository(this);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Creates a new unit of work for the various database repositories
 /// </summary>
 public UnitOfWork()
 {
     _entityContext   = new JustPressPlayDBEntities();
     _achievementRepo = new AchievementRepository(this);
     _questRepo       = new QuestRepository(this);
     _userRepo        = new UserRepository(this);
     _systemRepo      = new SystemRepository(this);
 }