Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 public AuthRepository(LiveBotDBContext context) : base(context)
 {
 }