Method GetCollection
GetCollection<TDocument>(string, MongoCollectionSettings)
Gets a collection.
IMongoCollection<TDocument> GetCollection<TDocument>(string name, MongoCollectionSettings settings = null)
Parameters
name
stringThe name of the collection.
settings
MongoCollectionSettingsThe settings.
Returns
- IMongoCollection<TDocument>
An implementation of a collection.
Type Parameters
TDocument
The document type.