public UnitOfWork(RingkeyDbContext context)
        {
            _context = context;

            Account     = new AccountRepository(_context);
            Message     = new MessageRepository(_context);
            BannedWords = new BannedWordsRepository(_context);
            Report      = new ReportRepository(_context);
            Role        = new RoleRepository(_context);
            Permission  = new PermissionRepository(_context);
            Poll        = new PollRepository(_context);
            Category    = new CategoryRepository(_context);
        }
Beispiel #2
0
 public Repository(RingkeyDbContext context)
 {
     _dbContext = context;
 }
 public CategoryRepository(RingkeyDbContext context) : base(context)
 {
 }