public UnitOfWork(LiveBotDBContext context) { _context = context ?? throw new ArgumentNullException(nameof(context)); GuildRepository = new GuildRepository(context); ChannelRepository = new ChannelRepository(context); RoleRepository = new RoleRepository(context); SubscriptionRepository = new SubscriptionRepository(context); UserRepository = new UserRepository(context); NotificationRepository = new NotificationRepository(context); GameRepository = new GameRepository(context); AuthRepository = new AuthRepository(context); }
public AuthRepository(LiveBotDBContext context) : base(context) { }