Пример #1
0
 public UnitOfWork(ContestantDbContext _context)
 {
     context          = _context;
     District         = new DistrictRepository(context);
     Contestant       = new ContestantRepository(context);
     ContestantRating = new ContestantRatingRepository(context);
 }
Пример #2
0
 public DistrictRepository(ContestantDbContext context) : base(context)
 {
     _context = context;
 }
Пример #3
0
 public ContestantRatingRepository(ContestantDbContext context) : base(context)
 {
     _context = context;
 }