public UnitOfWork(ApplicationDbContext context) { _context = context; Tours = new TourRepository(context); Attendences = new AttendenceRepository(context); Followings = new FollowingRepository(context); Genres = new GenreRepository(context); }
public UnitOfWork(ApplicationDbContext context) { _dbContext = context; Events = new EventRepository(_dbContext); Attendence = new AttendenceRepository(_dbContext); Following = new FollowingRepository(_dbContext); Genre = new GenreRepository(_dbContext); }
public UnitOfWork(ApplicationDbContext context) { _context = context; Gigs = new GigRepository(_context); Attendence = new AttendenceRepository(_context); Following = new FollowingRepository(_context); Genre = new GenreRepository(_context); Notification = new NotificationRepository(_context); Composition = new CompositionRepository(_context); Artist = new ArtistRepository(_context); }
public UnitOfWork(ApplicationDbContext context) { _context = context; Gigs = new GigRepository(context); Attendences = new AttendenceRepository(context); Genres = new GenreRepository(context); Followings = new FollowingRepository(context); ApplicationUser = new ApplicationUserRepository(context); Notification = new NotificationRepository(context); UserNotification = new UserNotificationRepository(context); }
public HomeController() { _context = new ApplicationDbContext(); _attendenceRepository = new AttendenceRepository(_context); }