예제 #1
0
        public MongoContentCollection(string name, IMongoDatabase database, IAppProvider appProvider, ITextIndex indexer, DataConverter dataConverter)
            : base(database)
        {
            this.name = name;

            queryAsStream   = new QueryAsStream(dataConverter, appProvider);
            queryBdId       = new QueryById(dataConverter);
            queryByIds      = new QueryByIds(dataConverter);
            queryByQuery    = new QueryByQuery(dataConverter, indexer, appProvider);
            queryReferences = new QueryReferences(dataConverter, queryByIds);
            queryReferrers  = new QueryReferrers(dataConverter);
            queryScheduled  = new QueryScheduled(dataConverter);
        }
예제 #2
0
        public MongoContentCollection(string name, IMongoDatabase database, IAppProvider appProvider)
            : base(database)
        {
            this.name = name;

            queryAsStream   = new QueryAsStream();
            queryBdId       = new QueryById();
            queryByIds      = new QueryByIds();
            queryByQuery    = new QueryByQuery(appProvider);
            queryReferences = new QueryReferences(queryByIds);
            queryReferrers  = new QueryReferrers();
            queryScheduled  = new QueryScheduled();
        }