/// <summary>
 /// Initializes a new instance of the MongoRepository class.
 /// </summary>
 /// <param name="url">Url to use for connecting to MongoDB.</param>
 /// <param name="collectionName">The name of the collection to use.</param>
 public MongoRepository(MongoUrl url, string collectionName)
 {
     this.collection = MongoUtil <TKey> .GetCollectionFromUrl <T>(url, collectionName);
 }
 /// <summary>
 /// Initializes a new instance of the MongoRepository class.
 /// </summary>
 /// <param name="url">Url to use for connecting to MongoDB.</param>
 public MongoRepository(MongoUrl url)
 {
     this.collection = MongoUtil <TKey> .GetCollectionFromUrl <T>(url);
 }