I'm using a MongoDB instance behind self-signed SSL, which means that to use this project I need to include sslVerifyCertificate=false on my connection string... that's bad. 😢
Do you think it would be a good idea to be able to initialise a MongoRepository by passing it a MongoClient. e.g.
var settings = new MongoClientSettings{ /*...*/ }
var client = new MongoClient(settings);
var db = client.GetServer().GetDatabase("mydb");
var repository = new MongoRepository(db, "mycollection");
Also it could be good to have a factory or context that provides the repositories -
var context = new MongoContext(db);
var repository = context.Repository<MyType>("mycollection");
This way you could pass an initialised context around and easily create repositories.