MongoDB-RepositoryUoWPatterns
MongoDB-RepositoryUoWPatterns copied to clipboard
Example of an implementation of Repository and Unit of Work Patterns with MongoDB for ASP.NET Core.
Bumps [MongoDB.Driver](https://github.com/mongodb/mongo-csharp-driver) from 2.11.2 to 2.19.0. Release notes Sourced from MongoDB.Driver's releases. NET Driver Version 2.19.0 Release Notes .NET Driver Version 2.19.0 Release Notes This is the general availability release...
Bumps [Swashbuckle.AspNetCore.SwaggerUi](https://github.com/domaindrivendev/Swashbuckle.AspNetCore) from 5.5.1 to 6.4.0. Release notes Sourced from Swashbuckle.AspNetCore.SwaggerUi's releases. v6.4.0 Changes since v6.3.0 v6.3.1 Changes since v6.3.0 v6.3.0 Changes since v6.2.3 v6.2.3 Changes since v6.1.3 v6.1.3 No...
Hey I found that a MongoClient is created per each HTTP request. MongoDB strongly advises on a single instance since they [don't dispose of resources correctly](https://jira.mongodb.org/browse/CSHARP-3431). More details [here](https://www.mongodb.com/community/forums/t/best-practice-for-singleton-vs-multiple-mongoclients-when-you-need-to-authenticate-with-different-users/125935/6).