Exemplo n.º 1
0
 /// <summary>
 /// Creates and returns a MongoCollection from the specified type and url.
 /// </summary>
 /// <typeparam name="T">The type to get the collection of.</typeparam>
 /// <param name="url">The url to use to get the collection from.</param>
 /// <param name="collectionName">The name of the collection to use.</param>
 /// <returns>Returns a MongoCollection from the specified type and url.</returns>
 internal static IMongoCollection <T> GetCollectionFromUrl(MongoUrl url, string collectionName)
 {
     return(DatabaseHelpers <T> .GetDatabaseFromUrl(url).GetCollection <T>(collectionName));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Creates and returns a MongoCollection from the specified type and url.
 /// </summary>
 /// <typeparam name="T">The type to get the collection of.</typeparam>
 /// <param name="url">The url to use to get the collection from.</param>
 /// <param name="collectionName">The name of the collection to use.</param>
 /// <returns>Returns a MongoCollection from the specified type and url.</returns>
 internal static SequenceRepository GetCollectionSequenceFromUrl(MongoUrl url, string sequenceVal)
 {
     return(DatabaseHelpers <T> .GetDatabaseSequenceFromUrl(url, sequenceVal));
 }