Пример #1
0
 public UnitOfWork(ApplicationDbContext dbContext)
 {
     _dbContext  = dbContext;
     Gigs        = new GigsRepository(dbContext);
     Followings  = new FollowingsRepository(dbContext);
     Genres      = new GenreRepository(dbContext);
     Attendances = new AttendanceRepository(dbContext);
 }
Пример #2
0
 public UnitOfWork(ApplicationDbContext context)
 {
     _context               = context;
     GigsRepository         = new GigsRepository(context);
     AttendanceRepositories = new AttendanceRepositories(context);
     FollowingsRepository   = new FollowingsRepository(context);
     GenreRepository        = new GenreRepository(context);
 }
Пример #3
0
 public UnitOfWork(ApplicationDbContext context)
 {
     _context    = context;
     Gigs        = new GigsRepository(_context);
     Users       = new UserRepository(_context);
     Followings  = new FollowingsRepository(_context);
     Genres      = new GenresRepository(_context);
     Attendences = new AttendencesRepository(_context);
 }
Пример #4
0
 public UnitOfWork(ApplicationDbContext context)
 {
     _context      = context;
     Gigs          = new GigRepository(_context);
     Genres        = new GenreRepository(_context);
     Attendances   = new AttendanceRepository(_context);
     Followings    = new FollowingsRepository(_context);
     Notifications = new UserNotificationRepository(_context);
 }