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

        public IndexWorker(IIndexQueue queue, IIndexRegister registry)
        {
            _indexQueue = queue;
            //_services = services;
            //logger = loggerFactory.CreateLogger<IndexWorker>();
            //_logger = logger;
            _registry = registry;
        }
示例#5
0
 public DataContext(IIndexQueue indexQueue, IIndexRegister indexStoreInit)
     : base(indexQueue, indexStoreInit)
 {
     Database.SetInitializer <DataContext>(new DatabaseInit());
     indexStoreInit.RegisterEntityTypes(typeof(DataContext).Assembly);
 }
示例#6
0
 public SearchService(IIndexStore store, IIndexRegister register)
 {
     _store    = store;
     _register = register;
 }
示例#7
0
 public S1Context(IIndexQueue indexQueue, IIndexRegister indexRegistry)
     : base(indexQueue, indexRegistry)
 {
     Database.SetInitializer <S1Context>(new S1Init());
 }
示例#8
0
 public S1Context(string connectionString, IIndexQueue indexQueue, IIndexRegister indexRegistry)
     : base(connectionString, indexQueue, indexRegistry)
 {
     Database.SetInitializer <S1Context>(new S1Init());
 }
示例#9
0
 public BaseContext(DbConnection connection, IIndexQueue indexQueue, IIndexRegister indexRegistry)
     : base(connection, true)
 {
     _indexQueue    = indexQueue;
     _indexRegistry = indexRegistry;
 }
示例#10
0
 public BaseContext(IIndexQueue indexQueue, IIndexRegister indexRegistry)
     : base("name=DB")
 {
     _indexQueue    = indexQueue;
     _indexRegistry = indexRegistry;
 }
示例#11
0
 public BaseContext(string connectionString, IIndexQueue indexQueue, IIndexRegister indexRegistry)
     : base(connectionString)
 {
     _indexQueue    = indexQueue;
     _indexRegistry = indexRegistry;
 }
示例#12
0
 public BaseContext(string connectionString)
     : base(connectionString)
 {
     _indexQueue    = null;
     _indexRegistry = null;
 }