Method GetCollection
GetCollection<TDocument>(string, MongoCollectionSettings)
Gets a collection.
public abstract IMongoCollection<TDocument> GetCollection<TDocument>(string name, MongoCollectionSettings settings = null)
Parameters
namestringThe name of the collection.
settingsMongoCollectionSettingsThe settings.
Returns
- IMongoCollection<TDocument>
An implementation of a collection.
Type Parameters
TDocumentThe document type.