Exemplo n.º 1
0
 public IndexBuilder(IIndexStore indexContext, IDbContext primaryContext, IIndexQueue queue, IIndexRegister registry)
 {
     _indexContext   = indexContext;
     _primaryContext = primaryContext;
     _indexQueue     = queue;
     _registry       = registry;
 }
Exemplo n.º 2
0
 public BaseContext(DbConnection connection, IIndexQueue indexQueue, IIndexRegister indexRegistry)
     : base(connection, true)
 {
     _indexQueue    = indexQueue;
     _indexRegistry = indexRegistry;
     indexRegistry.RegisterEntityTypes(GetType().Assembly);
 }
Exemplo n.º 3
0
 public BaseContext(IIndexQueue indexQueue, IIndexRegister indexRegistry)
     : base("name=DB")
 {
     _indexQueue    = indexQueue;
     _indexRegistry = indexRegistry;
     //indexRegistry.RegisterEntityTypes(GetType().Assembly);
 }
Exemplo n.º 4
0
        //private ILogger<IndexWorker> _logger;

        public IndexWorker(IIndexQueue queue, IIndexRegister registry)
        {
            _indexQueue = queue;
            //_services = services;
            //logger = loggerFactory.CreateLogger<IndexWorker>();
            //_logger = logger;
            _registry = registry;
        }
Exemplo n.º 5
0
 public DataContext(IIndexQueue indexQueue, IIndexRegister indexStoreInit)
     : base(indexQueue, indexStoreInit)
 {
     Database.SetInitializer <DataContext>(new DatabaseInit());
     indexStoreInit.RegisterEntityTypes(typeof(DataContext).Assembly);
 }
Exemplo n.º 6
0
 public S1Context(IIndexQueue indexQueue, IIndexRegister indexRegistry)
     : base(indexQueue, indexRegistry)
 {
     Database.SetInitializer <S1Context>(new S1Init());
 }
Exemplo n.º 7
0
 public S1Context(string connectionString, IIndexQueue indexQueue, IIndexRegister indexRegistry)
     : base(connectionString, indexQueue, indexRegistry)
 {
     Database.SetInitializer <S1Context>(new S1Init());
 }
Exemplo n.º 8
0
 public BaseContext(DbConnection connection, IIndexQueue indexQueue, IIndexRegister indexRegistry)
     : base(connection, true)
 {
     _indexQueue    = indexQueue;
     _indexRegistry = indexRegistry;
 }
Exemplo n.º 9
0
 public BaseContext(IIndexQueue indexQueue, IIndexRegister indexRegistry)
     : base("name=DB")
 {
     _indexQueue    = indexQueue;
     _indexRegistry = indexRegistry;
 }
Exemplo n.º 10
0
 public BaseContext(string connectionString, IIndexQueue indexQueue, IIndexRegister indexRegistry)
     : base(connectionString)
 {
     _indexQueue    = indexQueue;
     _indexRegistry = indexRegistry;
 }