public MongoUnitOfWork(IMongoDbConnection connection) { MongoUrl url = new MongoUrl(connection.GetConnectionString()); MongoClient client = new MongoClient(url); _database = client.GetDatabase(url.DatabaseName); }
protected MongoDbRepository(IMongoDbConnection mongoDbConnection) { _client = new MongoClient(mongoDbConnection.GetConnectionString()); _database = _client.GetDatabase(mongoDbConnection.GetDatabaseName()); }