MongoRepository documentation
MongoRepositoryT, TKeyCollection Property |
Gets the Mongo collection (to perform advanced operations).
Namespace: MongoRepository
Assembly: MongoRepository.Net45 (in MongoRepository.Net45.dll) Version: 1.6.11.0 (1.6.11.0)

public MongoCollection<T> Collection { get; }
Public ReadOnly Property Collection As MongoCollection(Of T) Get
public: virtual property MongoCollection<T>^ Collection { MongoCollection<T>^ get () sealed; }
abstract Collection : MongoCollection<'T> with get override Collection : MongoCollection<'T> with get
Property Value
Type: MongoCollectionTThe Mongo collection (to perform advanced operations).
Implements
IRepositoryT, TKeyCollection
One can argue that exposing this property (and with that, access to it's Database property for instance
(which is a "parent")) is not the responsibility of this class. Use of this property is highly discouraged;
for most purposes you can use the MongoRepositoryManager<T>
