MongoDbRepositoryPattern MongoDB generic repository implementation using .NET Core 2.1 Configuration Edit "YourConnectionString" and "YourDatabaseName" part in MongoDbRepository.WebApi/appsettings.json