public void CreateStatistics() { if (GetStatistics() == null) { _dbManager.CreateCollection(collectionname); } }
public BooksCollectedReaderDataMapper(string server, string database) { _databaseManager = new MongodbDatabaseManager(server, database); _serverManager = new MongodbServerManager(server); if (GetBooks() == null) { _databaseManager.CreateCollection(collectionname); } CreateIndexes(); }
public BooksCollectedDataMapper(string server, string database) { MyRegisterClassMapHelper(); _serverManager = new MongodbServerManager(server); _dbManager = new MongodbDatabaseManager(server, database); if (GetBookCollection() == null) { _dbManager.CreateCollection(CollectionName); } CreateIndexes(); }