Creates a connection to a databaseName based on the Databasename and optional server connection string.
Returned Mongo DatabaseName 'connection' can be cached and reused.
public virtual MongoDatabase GetDatabase(string connectionString,
string databaseName);
Return Value
Database instance
Parameters
connectionString
Mongo server connection string.
Can either be a connection string entry name from the ConnectionStrings
section in the config file or a full server string.
If not specified looks for connectionstring entry in same name as
the context. Failing that mongodb://localhost is used.