Exemplo n.º 1
0
        public IMongoCollection <BsonDocument> GetCollection(Collections collection)
        {
            var collectionName = DatabaseCollections.Get(collection);

            return(_mongoDatabaseProvider.Database.GetCollection <BsonDocument>(collectionName));
        }
Exemplo n.º 2
0
        protected IMongoCollection <T> GetCollection <T>(Collections collections)
        {
            var collectionName = DatabaseCollections.Get(collections);

            return(_mongoDatabaseProvider.Database.GetCollection <T>(collectionName));
        }