Table of Contents

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

collectionName string

The name of the collection to get a collection for.

Returns

IMongoCollection<T>

The MongoDB.Driver.IMongoCollection<TDocument>

Type Parameters

T

The type of data that will be returned by the collection.