Пример #1
0
 public UnitOfWork()
 {
     mContext = new TheatreAppContext();
     Seances = new SeanceRepository(mContext);
     Spectacles = new SpectacleRepository(mContext);
     Users = new UsersRepository(mContext);
 }
Пример #2
0
 public UsersRepository(TheatreAppContext context)
 {
     mContext = context;
 }
Пример #3
0
 public SpectacleRepository(TheatreAppContext context)
 {
     mContext = context;
 }
Пример #4
0
 public SeanceRepository(TheatreAppContext context)
 {
     mContext = context;
 }