UmbracoExternalStorageWithMongoDB 11.1.0
See the version list below for details.
dotnet add package UmbracoExternalStorageWithMongoDB --version 11.1.0
NuGet\Install-Package UmbracoExternalStorageWithMongoDB -Version 11.1.0
<PackageReference Include="UmbracoExternalStorageWithMongoDB" Version="11.1.0" />
paket add UmbracoExternalStorageWithMongoDB --version 11.1.0
#r "nuget: UmbracoExternalStorageWithMongoDB, 11.1.0"
// Install UmbracoExternalStorageWithMongoDB as a Cake Addin #addin nuget:?package=UmbracoExternalStorageWithMongoDB&version=11.1.0 // Install UmbracoExternalStorageWithMongoDB as a Cake Tool #tool nuget:?package=UmbracoExternalStorageWithMongoDB&version=11.1.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
- 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.
- 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>"
}
}
- 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 | Versions 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. |
-
net7.0
- Umbraco.Cms.Web.BackOffice (>= 11.1.0)
- Umbraco.Cms.Web.Website (>= 11.1.0)
- UmbracoMongoDbClient (>= 11.1.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.