UmbracoMongoDbClient 11.1.1

.NET 7.0
dotnet add package UmbracoMongoDbClient --version 11.1.1
NuGet\Install-Package UmbracoMongoDbClient -Version 11.1.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="UmbracoMongoDbClient" Version="11.1.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add UmbracoMongoDbClient --version 11.1.1
#r "nuget: UmbracoMongoDbClient, 11.1.1"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install UmbracoMongoDbClient as a Cake Addin
#addin nuget:?package=UmbracoMongoDbClient&version=11.1.1

// Install UmbracoMongoDbClient as a Cake Tool
#tool nuget:?package=UmbracoMongoDbClient&version=11.1.1

Setup procedure

The appsettings.json file should be given a connection string to your MongoDB databases

	"MongoDbCredentials": {
	    "CertificateFilePathWithName": "<optional Certificate file path with name [pfx file]>",
	    "CertificatePassword": "<optional Certificate password>",
	    "ConnectionString": "<mandatory> mongodb+srv://"

Sample code

var database = MongoDBClientConnection.GetDatabase("YouDatabaseName");
var collection = database.GetCollection<T>("YourCollectionName"); // of type T

For more examples on how to Insert, Modify your data, check the MongoDB official documentation:

Product Versions
.NET net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on UmbracoMongoDbClient:

Package Downloads

Package Description


Package Description


This package allows you to store your custom data in a NoSQL MongoDB database. Unlike most NoSQL databases, a MomgoDB server can be installed on almost any platform, your laptop or on a Cloud service like AWS, GCP or Azure. It avoids vendor lock in into any specific hosting platform.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
11.1.1 79 1/31/2023
11.1.0 75 1/30/2023
11.0.0 170 12/4/2022
7.1.0 321 11/1/2022
7.0.0 192 10/29/2022
6.0.0 214 10/15/2022
5.3.0 212 10/15/2022
5.2.0 209 10/14/2022
5.1.0 209 10/14/2022
5.0.0 231 9/18/2022
4.0.1 378 7/30/2022
4.0.0 228 7/30/2022
3.0.0 443 7/20/2022
2.0.1 2,118 7/20/2022
2.0.0 257 7/17/2022
1.0.0 253 7/17/2022