/// <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> /// <returns>Returns a MongoCollection from the specified type and url.</returns> public static IMongoCollection <T> GetCollectionFromUrl <T>(MongoUrl url) where T : IEntity <U> { return(MongoUtil <U> .GetCollectionFromUrl <T>(url, GetCollectionName <T>())); }