コード例 #1
0
ファイル: QueryRunner.cs プロジェクト: rstonkus/ravendb
 public QueryRunner(DocumentDatabase database) : base(database)
 {
     _static  = new StaticIndexQueryRunner(database);
     _dynamic =
         database.Configuration.Indexing.DisableQueryOptimizerGeneratedIndexes ? (AbstractQueryRunner) new InvalidQueryRunner(database) : new DynamicQueryRunner(database);
     _collection = new CollectionQueryRunner(database);
 }
コード例 #2
0
ファイル: QueryRunner.cs プロジェクト: yitaom2/ravendb
 public QueryRunner(DocumentDatabase database) : base(database)
 {
     _static  = new StaticIndexQueryRunner(database);
     _dynamic = database.Configuration.Indexing.DisableQueryOptimizerGeneratedIndexes
         ? (AbstractQueryRunner) new InvalidQueryRunner(database)
         : new DynamicQueryRunner(database);
     _collection = new CollectionQueryRunner(database);
     _graph      = new GraphQueryRunner(database);
     _currentlyRunningQueries = new ConcurrentSet <ExecutingQueryInfo>();
 }