Arham.Foundation.Persistence.MongoDb
0.6.0-preview.5
dotnet add package Arham.Foundation.Persistence.MongoDb --version 0.6.0-preview.5
NuGet\Install-Package Arham.Foundation.Persistence.MongoDb -Version 0.6.0-preview.5
<PackageReference Include="Arham.Foundation.Persistence.MongoDb" Version="0.6.0-preview.5" />
<PackageVersion Include="Arham.Foundation.Persistence.MongoDb" Version="0.6.0-preview.5" />
<PackageReference Include="Arham.Foundation.Persistence.MongoDb" />
paket add Arham.Foundation.Persistence.MongoDb --version 0.6.0-preview.5
#r "nuget: Arham.Foundation.Persistence.MongoDb, 0.6.0-preview.5"
#:package Arham.Foundation.Persistence.MongoDb@0.6.0-preview.5
#addin nuget:?package=Arham.Foundation.Persistence.MongoDb&version=0.6.0-preview.5&prerelease
#tool nuget:?package=Arham.Foundation.Persistence.MongoDb&version=0.6.0-preview.5&prerelease
Arham.Foundation.Persistence.MongoDb
MongoDB persistence helpers for .NET applications.
Use this package for MongoDB database setup, collection naming, generic read/write repositories, BSON serializers for Arham Foundation value objects, and persistence metrics.
Install
dotnet add package Arham.Foundation.Persistence.MongoDb
What It Provides
MongoDatabaseFactorywith globally usable MongoDB driver settings.- Collection name resolution with optional prefixes.
- Generic read/write repositories for document-oriented persistence.
- BSON serializers for Arham Foundation string value objects, string-set value objects, and JSON string payloads.
- Neutral metrics and registration helpers under
Arham.Foundation.Persistence.MongoDb.*meter names.
Example
using Arham.Foundation.Persistence.MongoDb.Resilience;
services.AddArhamMongoDb(options =>
{
options.ConnectionString = builder.Configuration.GetConnectionString("MongoDb");
options.DatabaseName = "orders";
});
Dependencies
This package references Arham Foundation Core and the MongoDB driver only. It does not reference EF Core, Kafka, or any application-host package.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Ardalis.Result (>= 10.1.0)
- Ardalis.SmartEnum (>= 8.2.0)
- Ardalis.Specification (>= 9.3.1)
- Arham.Foundation.Application (>= 0.6.0-preview.5)
- Arham.Foundation.Core (>= 0.6.0-preview.5)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.6)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.6)
- Microsoft.Extensions.Options (>= 10.0.6)
- MongoDB.Bson (>= 3.9.0)
- MongoDB.Driver (>= 3.9.0)
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 |
|---|---|---|
| 0.6.0-preview.5 | 318 | 7/5/2026 |
| 0.6.0-preview.4 | 70 | 7/5/2026 |
| 0.6.0-preview.3 | 160 | 6/22/2026 |
| 0.6.0-preview.2 | 93 | 6/19/2026 |
| 0.6.0-preview.1 | 71 | 6/19/2026 |
| 0.6.0-preview.0 | 91 | 6/18/2026 |
| 0.5.0-Preview.0 | 63 | 6/18/2026 |
| 0.4.0-Preview.0 | 82 | 6/18/2026 |
| 0.3.0-Preview.0 | 80 | 6/17/2026 |
| 0.2.0-preview.0 | 178 | 6/17/2026 |
| 0.1.0-Preview.7 | 61 | 6/16/2026 |
| 0.1.0-Preview.6 | 51 | 6/16/2026 |
| 0.1.0-Preview.5 | 1,945 | 6/16/2026 |
| 0.1.0-preview.4 | 64 | 6/13/2026 |
| 0.1.0-Preview.3 | 60 | 6/13/2026 |
0.6.0-preview.5: multitenancy contracts (ITenantScopedEntity, ITenantContextProvider, StaticTenantContextProvider, MissingTenantContextException, CrossTenantWriteException) moved from Arham.Foundation.Persistence.EfCore to Arham.Foundation.Core (namespace Arham.Foundation.Core.Multitenancy) so domain layers can implement the tenant marker without an EF Core dependency. EF enforcement (TenantSaveChangesInterceptor, UseArhamMultitenancy, UseArhamTenantEnforcement) and the PostgreSQL RLS half are unchanged in their packages. Breaking within the 0.6.0 preview line: update usings from Arham.Foundation.Persistence.EfCore.Multitenancy to Arham.Foundation.Core.Multitenancy for the moved types. See CHANGELOG.md and docs/Multitenancy.md.