Beispiel #1
0
        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);
        }
Beispiel #2
0
 public TemplateRepository(BotContext context) : base(context)
 {
 }
Beispiel #3
0
 public AimlDocRepository(BotContext context) : base(context)
 {
 }
Beispiel #4
0
 public BotUserPredicateRepository(BotContext context) : base(context)
 {
 }
Beispiel #5
0
 public GenericRepository(BotContext context)
 {
     _context = context ?? throw new ArgumentNullException(nameof(context));
     _dbSet   = context.Set <TEntity>();
 }
 public BotUserResultRepostiory(BotContext context) : base(context)
 {
 }
Beispiel #7
0
 public ApplicationRepository(BotContext context) : base(context)
 {
 }
Beispiel #8
0
 public BotUserRepository(BotContext context) : base(context)
 {
 }
Beispiel #9
0
 public BrainRepository(BotContext context) : base(context)
 {
 }
Beispiel #10
0
 public SettingRepository(BotContext context) : base(context)
 {
 }