/// <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) { _collection = MongoDbUtil <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) { _collection = MongoDbUtil <TKey> .GetCollectionFromUrl <T>(url); }