public Repository(MongoUrl url, string collectionName) { _collection = MongoFactory <TKey> .GetCollectionFromUrl <T>(url, collectionName); }
public Repository(string connectionString, string collectionName) { _collection = MongoFactory <TKey> .GetCollectionFromConnectionString <T>(connectionString, collectionName); }
public Repository(MongoUrl url) { _collection = MongoFactory <TKey> .GetCollectionFromUrl <T>(url); }
public Repository(IConfiguration config) : this(MongoFactory <TKey> .GetDefaultConnectionString(config)) { }