/// <summary>
 /// The contructor taking a <see cref="IMongoDatabase"/>.
 /// </summary>
 /// <param name="mongoDatabase">A mongodb context implementing <see cref="IMongoDatabase"/></param>
 protected BaseMongoRepository(IMongoDatabase mongoDatabase) : base(mongoDatabase)
 {
     MongoDbContext = new MongoDbContext(mongoDatabase);
 }
 /// <summary>
 /// The constructor taking a connection string and a database name.
 /// </summary>
 /// <param name="connectionString">The connection string of the MongoDb server.</param>
 /// <param name="databaseName">The name of the database against which you want to perform operations.</param>
 protected BaseMongoRepository(string connectionString, string databaseName) : base(connectionString, databaseName)
 {
     MongoDbContext = new MongoDbContext(connectionString, databaseName);
 }