public UnitOfWork() { DbContextOptionsBuilder builder = new DbContextOptionsBuilder(); _context = new BotContext(builder.Options); //_nodeRepository = new NodeRepository(_context); //_settingRepository = new SettingRepository(_context); _applicationRepository = new ApplicationRepository(_context); _templateRepository = new TemplateRepository(_context); _brainRepository = new BrainRepository(_context); _aimlDocRepository = new AimlDocRepository(_context); _botUserRepository = new BotUserRepository(_context); _botUserResultRepository = new BotUserResultRepostiory(_context); _botUserPredicateRepository = new BotUserPredicateRepository(_context); _botUserRequestRepository = new BotUserRequestRepository(_context); }
public TemplateRepository(BotContext context) : base(context) { }
public AimlDocRepository(BotContext context) : base(context) { }
public BotUserPredicateRepository(BotContext context) : base(context) { }
public GenericRepository(BotContext context) { _context = context ?? throw new ArgumentNullException(nameof(context)); _dbSet = context.Set <TEntity>(); }
public BotUserResultRepostiory(BotContext context) : base(context) { }
public ApplicationRepository(BotContext context) : base(context) { }
public BotUserRepository(BotContext context) : base(context) { }
public BrainRepository(BotContext context) : base(context) { }
public SettingRepository(BotContext context) : base(context) { }