UmbracoExternalStorageWithMongoDB 12.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package UmbracoExternalStorageWithMongoDB --version 12.0.0                
NuGet\Install-Package UmbracoExternalStorageWithMongoDB -Version 12.0.0                
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="UmbracoExternalStorageWithMongoDB" Version="12.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add UmbracoExternalStorageWithMongoDB --version 12.0.0                
#r "nuget: UmbracoExternalStorageWithMongoDB, 12.0.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install UmbracoExternalStorageWithMongoDB as a Cake Addin
#addin nuget:?package=UmbracoExternalStorageWithMongoDB&version=12.0.0

// Install UmbracoExternalStorageWithMongoDB as a Cake Tool
#tool nuget:?package=UmbracoExternalStorageWithMongoDB&version=12.0.0                

What does this package do?

This package allows you to store your custom data in a NoSQL MongoDB database. Unlike most NoSQL databases, a MongoDB 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.

Setup procedure

  1. Setup a MongoDB server either locally on your laptop or you can use the MongoDB free hosting plan to create an instance on AWS, GCP or Azure.
  2. Update appsettings.json file with the connection string to the above database
{
	"MongoDbCredentials": {
	    "ConnectionString": "<mandatory> mongodb+srv://cluster0.fyu.mongodb.net/?authSource=%24external&authMechanism=MONGODB-X509&retryWrites=true&w=majority",
		"CertificateFilePathWithName": "<optional Certificate file path with name [pfx file]>",
	    "CertificatePassword": "<optional Certificate password>"
	  }
}
  1. Install this package

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: https://www.mongodb.com/docs/drivers/csharp/current/quick-reference/


Want to sponsor?

This is a free package, but if you want to sponsor my open source work, here is my GitHub profile

Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
13.0.0 443 12/16/2023
12.0.1 665 7/2/2023
12.0.0 591 7/2/2023
11.1.0 753 2/5/2023
10.4.0 774 2/5/2023