I would like to connect to the database specified in the connection string, without specifying it again in GetDatabase
.
For example, if I have a connection string like this;
mongodb://localhost/mydb
I would like to be able to db.GetCollection("mycollection")
from mydb
.
This would allow the database name to be configured easily in the app.config file.