Cirreum.Runtime.Persistence
1.0.28
dotnet add package Cirreum.Runtime.Persistence --version 1.0.28
NuGet\Install-Package Cirreum.Runtime.Persistence -Version 1.0.28
<PackageReference Include="Cirreum.Runtime.Persistence" Version="1.0.28" />
<PackageVersion Include="Cirreum.Runtime.Persistence" Version="1.0.28" />
<PackageReference Include="Cirreum.Runtime.Persistence" />
paket add Cirreum.Runtime.Persistence --version 1.0.28
#r "nuget: Cirreum.Runtime.Persistence, 1.0.28"
#:package Cirreum.Runtime.Persistence@1.0.28
#addin nuget:?package=Cirreum.Runtime.Persistence&version=1.0.28
#tool nuget:?package=Cirreum.Runtime.Persistence&version=1.0.28
Cirreum.Runtime.Persistence
Simplified persistence configuration for Cirreum runtime applications
Overview
Cirreum.Runtime.Persistence provides a unified persistence layer configuration for the Cirreum framework. It simplifies database integration by offering a single extension method that automatically registers and configures multiple persistence providers with built-in health checks.
Installation
dotnet add package Cirreum.Runtime.Persistence
Usage
Add persistence to your application with a single line:
var builder = WebApplication.CreateBuilder(args);
// Add persistence support
builder.AddPersistence();
var app = builder.Build();
This automatically:
- Registers Azure Cosmos DB persistence services
- Registers SQL Server persistence services
- Configures health checks for database connectivity
- Prevents duplicate service registration
- Integrates with the Cirreum service provider infrastructure
Supported Providers
| Provider | Package | Database |
|---|---|---|
| Azure Cosmos DB | Cirreum.Persistence.Azure |
NoSQL document database |
| Sql Server | Cirreum.Persistence.SqlServer |
SQL Server relational database |
| SQLite | Cirreum.Persistence.SQLite |
SQLite relational database |
Features
- Simple Integration: One method to configure all persistence needs
- Multi-Provider Support: Built-in support for both NoSQL (Cosmos DB) and relational (SQL Server) databases
- Health Checks: Automatic health check registration for monitoring
- Duplicate Prevention: Smart registration prevents service conflicts
- Extensible Design: Built on the Cirreum service provider pattern for easy extension
Configuration
Configure persistence providers in appsettings.json:
{
"ServiceProviders": {
"Persistence": {
"Azure": {
"default": {
"Name": "MyCosmosDb",
"DatabaseId": "my-database",
"OptimizeBandwidth": true,
"IsAutoResourceCreationEnabled": true
}
},
"SqlServer": {
"default": {
"Name": "MySqlServer",
"UseAzureAuthentication": true,
"CommandTimeoutSeconds": 30,
"HealthOptions": {
"Query": "SELECT 1",
"Timeout": "00:00:05"
}
}
},
"Sqlite": {
"default": {
"Name": "MySqlite",
"CommandTimeoutSeconds": 30,
"HealthOptions": {
"Query": "SELECT 1",
"Timeout": "00:00:05"
}
}
}
}
},
"ConnectionStrings": {
"MyCosmosDb": "AccountEndpoint=https://your-account.documents.azure.com:443/;AccountKey=...",
"MySqlServer": "Server=myserver.database.windows.net;Database=MyDb"
"MySqlite": "Data Source=mydb.sqlite"
}
}
The Name property resolves the connection string via Configuration.GetConnectionString(name). For production, store connection strings in Azure Key Vault using the naming convention ConnectionStrings--{Name}.
For detailed configuration options, see the individual provider documentation:
Versioning
Cirreum.Runtime.Persistence follows Semantic Versioning:
- Major - Breaking API changes
- Minor - Truly new features, backward compatible
- Patch - Additional implementations, backward compatible
Given its foundational role, major version bumps are rare and carefully considered.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Cirreum Foundation Framework
Layered simplicity for modern .NET
| 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
- Cirreum.Persistence.Azure (>= 1.0.31)
- Cirreum.Persistence.SQLite (>= 1.0.5)
- Cirreum.Persistence.SqlServer (>= 1.0.8)
- Cirreum.Runtime.ServiceProvider (>= 1.0.6)
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 |
|---|---|---|
| 1.0.28 | 20 | 3/4/2026 |
| 1.0.27 | 93 | 2/5/2026 |
| 1.0.26 | 92 | 1/28/2026 |
| 1.0.25 | 94 | 1/21/2026 |
| 1.0.24 | 102 | 1/12/2026 |
| 1.0.23 | 96 | 1/11/2026 |
| 1.0.22 | 105 | 1/6/2026 |
| 1.0.21 | 104 | 1/6/2026 |
| 1.0.20 | 98 | 1/5/2026 |
| 1.0.19 | 105 | 1/3/2026 |
| 1.0.18 | 97 | 1/2/2026 |
| 1.0.17 | 96 | 1/2/2026 |
| 1.0.16 | 108 | 1/2/2026 |
| 1.0.15 | 101 | 1/1/2026 |
| 1.0.14 | 109 | 12/31/2025 |
| 1.0.12 | 102 | 12/30/2025 |
| 1.0.11 | 90 | 12/29/2025 |
| 1.0.10 | 94 | 12/29/2025 |
| 1.0.9 | 182 | 12/22/2025 |
| 1.0.8 | 131 | 12/20/2025 |