Exemple #1
0
 public static MongoCollection <T> GetCollectionFromUrl <T>(MongoUrl url)
     where T : IMongoEntity <U>
 {
     return(Extentions <U> .GetCollectionFromUrl <T>(url, GetCollectionName <T>()));
 }
Exemple #2
0
 public static MongoCollection <T> GetCollectionFromConnectionString <T>(string connectionString)
     where T : IMongoEntity <U>
 {
     return(Extentions <U> .GetCollectionFromConnectionString <T>(connectionString, GetCollectionName <T>()));
 }
Exemple #3
0
 public static MongoCollection <T> GetCollectionFromConnectionString <T>(string connectionString, string collectionName)
     where T : IMongoEntity <U>
 {
     return(Extentions <U> .GetDatabaseFromUrl(new MongoUrl(connectionString))
            .GetCollection <T>(collectionName));
 }
Exemple #4
0
 public static MongoCollection <T> GetCollectionFromUrl <T>(MongoUrl url, string collectionName)
     where T : IMongoEntity <U>
 {
     return(Extentions <U> .GetDatabaseFromUrl(url)
            .GetCollection <T>(collectionName));
 }