public UnitOfWork(ApplicationDbContext dbContext) { _dbContext = dbContext; Gigs = new GigsRepository(dbContext); Followings = new FollowingsRepository(dbContext); Genres = new GenreRepository(dbContext); Attendances = new AttendanceRepository(dbContext); }
public UnitOfWork(ApplicationDbContext context) { _context = context; GigsRepository = new GigsRepository(context); AttendanceRepositories = new AttendanceRepositories(context); FollowingsRepository = new FollowingsRepository(context); GenreRepository = new GenreRepository(context); }
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); }
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); }