Beispiel #1
0
        public static MongoCollection GetCollection(EnumMongodbCollection collectionName)
        {
            var database = Getdatabase();

            return(database.GetCollection <MediaModel>(collectionName.ToString()));
        }
Beispiel #2
0
 public static MongoCollection GetCollection(EnumMongodbCollection collectionName)
 {
     var database = Getdatabase();
     return database.GetCollection<MediaModel>(collectionName.ToString());
 }