Method GetCollection
- Namespace
- MongoDB.EntityFrameworkCore.Storage
- Assembly
- MongoDB.EntityFrameworkCore.dll
GetCollection<T>(string)
Get an MongoDB.Driver.IMongoCollection<TDocument> for the given collectionName;
public IMongoCollection<T> GetCollection<T>(string collectionName)
Parameters
collectionNamestringThe name of the collection to get a collection for.
Returns
- IMongoCollection<T>
The MongoDB.Driver.IMongoCollection<TDocument>
Type Parameters
TThe type of data that will be returned by the collection.