![]() |
VOOZH | about |
dotnet add package Franz.Common.Http.EntityFramework --version 2.2.7
NuGet\Install-Package Franz.Common.Http.EntityFramework -Version 2.2.7
<PackageReference Include="Franz.Common.Http.EntityFramework" Version="2.2.7" />
<PackageVersion Include="Franz.Common.Http.EntityFramework" Version="2.2.7" />Directory.Packages.props
<PackageReference Include="Franz.Common.Http.EntityFramework" />Project file
paket add Franz.Common.Http.EntityFramework --version 2.2.7
#r "nuget: Franz.Common.Http.EntityFramework, 2.2.7"
#:package Franz.Common.Http.EntityFramework@2.2.7
#addin nuget:?package=Franz.Common.Http.EntityFramework&version=2.2.7Install as a Cake Addin
#tool nuget:?package=Franz.Common.Http.EntityFramework&version=2.2.7Install as a Cake Tool
A specialized library within the Franz Framework that integrates Entity Framework Core with ASP.NET Core applications. This package simplifies transactional handling, dependency injection, and middleware configurations, enhancing database operations in HTTP-based services.
Transactional Filters:
TransactionFilter for managing database transactions seamlessly in API requests.Service Registration:
ServiceCollectionExtensions for registering database contexts and transactional filters.Entity Framework Core Integration:
Multi-Database Provider Support (since 1.3.4, extended in 1.6.2 & 1.6.3):
appsettings.json.Modular Design:
Compatible with other Franz Framework persistence components, such as:
Franz.Common.EntityFramework.MariaDBFranz.Common.EntityFramework.PostgresFranz.Common.EntityFramework.OracleFranz.Common.EntityFramework.SQLServerFranz.Common.MongoDBFranz.Common.AzureCosmosDBThis package relies on:
dotnet nuget add source "https://your-private-feed-url" \
--name "AzurePrivateFeed" \
--username "YourAzureUsername" \
--password "YourAzurePassword" \
--store-password-in-clear-text
Install the package:
dotnet add package Franz.Common.Http.EntityFramework
{
"Database": {
"Provider": "Postgres",
"ConnectionString": "Host=localhost;Database=mydb;Username=myuser;Password=mypass"
},
"MongoDb": {
"Provider": "Mongo",
"ConnectionString": "mongodb://localhost:27017",
"DatabaseName": "FranzMongoDb"
},
"CosmosDb": {
"Provider": "Cosmos",
"ConnectionString": "AccountEndpoint=https://your-account.documents.azure.com:443/;AccountKey=your-key;",
"DatabaseName": "FranzCosmosDb"
}
}
Supported providers: MariaDb, Postgres, Oracle, SqlServer, Mongo, Cosmos.
builder.Services.AddDatabase<MyDbContext>(builder.Environment, builder.Configuration);
For multiple contexts (polyglot persistence):
builder.Services.RegisterDatabaseForContext<MyRelationalDbContext>(builder.Configuration.GetSection("Database"));
builder.Services.RegisterDatabaseForContext<MyMongoDbContext>(builder.Configuration.GetSection("MongoDb"));
builder.Services.RegisterDatabaseForContext<MyCosmosStore>(builder.Configuration.GetSection("CosmosDb"));
Automatically applied by default, but can be explicitly added:
using Franz.Common.Http.EntityFramework.Transactions;
services.AddControllers(options =>
{
options.Filters.Add<TransactionFilter>();
});
The Franz.Common.Http.EntityFramework package integrates seamlessly with:
Environment-aware validation added to AddDatabase<TDbContext> and RegisterDatabaseForContext<TContext>:
appsettings.{Environment}.json.Governance baked in for relational DBs:
Extended multi-database orchestration:
MariaDB, Postgres, Oracle, SQLServer, MongoDB, CosmosDB) within the same app.Extended multi-database provider support to include NoSQL providers:
Franz.Common.MongoDB.Franz.Common.AzureCosmosDB.AddDatabase<TDbContext> now supports both relational and document database providers via config.
Introduced CosmosDBMessageStore and MongoMessageStore to unify outbox & dead-letter messaging in NoSQL providers.
Full alignment with Franz polyglot persistence philosophy.
appsettings.json (Database:Provider).AddDatabase<TDbContext>(env, config).| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.2.7 | 93 | 6/7/2026 |
| 2.2.6 | 101 | 6/6/2026 |
| 2.2.5 | 100 | 6/4/2026 |
| 2.2.4 | 89 | 6/3/2026 |
| 2.2.3 | 91 | 6/2/2026 |
| 2.2.2 | 102 | 6/2/2026 |
| 2.2.1 | 96 | 5/24/2026 |
| 2.1.4 | 102 | 4/27/2026 |
| 2.1.3 | 100 | 4/26/2026 |
| 2.1.2 | 98 | 4/26/2026 |
| 2.1.1 | 110 | 4/22/2026 |
| 2.0.2 | 113 | 3/30/2026 |
| 2.0.1 | 110 | 3/29/2026 |
| 1.7.8 | 113 | 3/2/2026 |
| 1.7.7 | 115 | 1/31/2026 |
| 1.7.6 | 119 | 1/22/2026 |
| 1.7.5 | 127 | 1/10/2026 |
| 1.7.4 | 128 | 12/27/2025 |
| 1.7.3 | 214 | 12/22/2025 |
| 1.7.2 | 212 | 12/21/2025 |