public LibraryStatisticsDataMapper(string servername, string database) { _databaseServer = servername; _databaseName = database; _serverManager = new MongodbServerManager(servername); _dbManager = new MongodbDatabaseManager(servername, database); }
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(); }