예제 #1
0
 public Repository(MongoUrl url, string collectionName)
 {
     _collection = MongoFactory <TKey> .GetCollectionFromUrl <T>(url, collectionName);
 }
예제 #2
0
 public Repository(string connectionString, string collectionName)
 {
     _collection = MongoFactory <TKey> .GetCollectionFromConnectionString <T>(connectionString, collectionName);
 }
예제 #3
0
 public Repository(MongoUrl url)
 {
     _collection = MongoFactory <TKey> .GetCollectionFromUrl <T>(url);
 }
예제 #4
0
 public Repository(IConfiguration config) : this(MongoFactory <TKey> .GetDefaultConnectionString(config))
 {
 }