コード例 #1
0
ファイル: UnitOfWork.cs プロジェクト: RIT-MAGIC/JustPressPlay
 /// <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);
 }
コード例 #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);
 }