Beispiel #1
0
 public UnitOfWork(ApplicationDbContext context)
 {
     _context    = context;
     Tours       = new TourRepository(context);
     Attendences = new AttendenceRepository(context);
     Followings  = new FollowingRepository(context);
     Genres      = new GenreRepository(context);
 }
Beispiel #2
0
 public UnitOfWork(ApplicationDbContext context)
 {
     _dbContext = context;
     Events     = new EventRepository(_dbContext);
     Attendence = new AttendenceRepository(_dbContext);
     Following  = new FollowingRepository(_dbContext);
     Genre      = new GenreRepository(_dbContext);
 }
Beispiel #3
0
 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);
 }
Beispiel #4
0
 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);
 }
Beispiel #5
0
 public HomeController()
 {
     _context = new ApplicationDbContext();
     _attendenceRepository = new AttendenceRepository(_context);
 }