The MongoDB Abstracts library defines abstract base classes for repository pattern.
The MongoDB.Abstracts library is available on nuget.org via package name MongoDB.Abstracts
.
To install MongoDB.Abstracts, run the following command in the Package Manager Console
PM> Install-Package MongoDB.Abstracts
More information about NuGet package available at https://nuget.org/packages/MongoDB.Abstracts
- interface for generic MongoDB queries;
IMongoQuery<TEntity, TKey>
- interface for generic MongoDB repository;
IMongoRepository<TEntity, TKey>
- base class for generic MongoDB queries;
MongoQuery<TEntity, TKey>
- base class for generic MongoDB repository;
MongoRepository<TEntity, TKey>
- interface for generic MongoDB entity;
IMongoEntity
- base class for generic MongoDB entity;
MongoEntity
- interface for generic MongoDB entity repository;
IMongoEntityRepository<TEntity>
- base class for generic MongoDB entity repository;
MongoEntityRepostiory<TEntity>