Franz.Common.EntityFramework.SQLServer
3.0.0
dotnet add package Franz.Common.EntityFramework.SQLServer --version 3.0.0
NuGet\Install-Package Franz.Common.EntityFramework.SQLServer -Version 3.0.0
<PackageReference Include="Franz.Common.EntityFramework.SQLServer" Version="3.0.0" />
<PackageVersion Include="Franz.Common.EntityFramework.SQLServer" Version="3.0.0" />
<PackageReference Include="Franz.Common.EntityFramework.SQLServer" />
paket add Franz.Common.EntityFramework.SQLServer --version 3.0.0
#r "nuget: Franz.Common.EntityFramework.SQLServer, 3.0.0"
#:package Franz.Common.EntityFramework.SQLServer@3.0.0
#addin nuget:?package=Franz.Common.EntityFramework.SQLServer&version=3.0.0
#tool nuget:?package=Franz.Common.EntityFramework.SQLServer&version=3.0.0
Franz.Common.EntityFramework.SQLServer
SQL Server EF Core provider registration for Franz
DbContextBasecontexts.
Overview
This adapter uses Microsoft.Data.SqlClient and the SQL Server EF Core provider. It consumes shared Franz database options and database-target resolution.
Installation
dotnet add package Franz.Common.EntityFramework.SQLServer
Registration
using Franz.Common.EntityFramework.SQLServer.Extensions;
builder.Services.AddSqlServerDatabase<ApplicationDbContext>(builder.Configuration);
The extension binds the Database section through AddDatabaseOptions, resolves the effective database name with DatabaseTargetResolver, configures UseSqlServer, and registers the concrete context as DbContextBase.
Configuration
{
"Database": {
"ServerName": "sql.example.internal",
"DatabaseName": "application",
"UserName": "application",
"Password": "<secret>",
"Port": 1433,
"SslMode": "Preferred",
"IsolationMode": "SharedDatabase",
"EnableSensitiveDataLogging": false
}
}
The adapter has development-oriented sa/password credentials; explicitly configure deployed connection fields and use a secret manager. It maps SslMode through SslEnforcement to SqlClient's Encrypt option, but the current connection-string builder unconditionally sets TrustServerCertificate = true. This bypasses certificate-chain validation. Do not treat Encrypt alone as server identity verification; correct this provider behavior before relying on certificate validation in production.
Multi-tenancy
TenantDatabase and DomainDatabase use the shared resolver and require a configured {dbName} token plus the corresponding validated execution context. The derived DbContext must forward the execution accessor and database/multi-tenancy options to DbContextBase.
License
MIT. See the repository LICENSE.
| 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
- Franz.Common.EntityFramework (>= 3.0.0)
- Franz.Common.MultiTenancy (>= 3.0.0)
- Microsoft.EntityFrameworkCore.SqlServer (>= 10.0.14)
- System.Security.Cryptography.Pkcs (>= 10.0.13)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Franz.Common.EntityFramework.SQLServer:
| Package | Downloads |
|---|---|
|
Franz.Common.Messaging.EntityFramework
Shared utility library for the Franz Framework. |
|
|
Franz.Common.Http.EntityFramework
Shared utility library for the Franz Framework. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.0.0 | 0 | 11/10/2026 |
| 2.3.4 | 360 | 11/1/2026 |
| 2.3.3 | 328 | 10/28/2026 |
| 2.3.2 | 127 | 10/27/2026 |
| 2.3.1 | 186 | 10/26/2026 |
| 2.3.0 | 247 | 7/21/2026 |
| 2.2.19 | 161 | 7/19/2026 |
| 2.2.18 | 155 | 7/19/2026 |
| 2.2.17 | 268 | 7/12/2026 |
| 2.2.16 | 163 | 7/2/2026 |
| 2.2.15 | 164 | 6/29/2026 |
| 2.2.14 | 158 | 6/29/2026 |
| 2.2.13 | 160 | 6/29/2026 |
| 2.2.12 | 150 | 6/28/2026 |
| 2.2.11 | 155 | 6/28/2026 |
| 2.2.10 | 155 | 6/28/2026 |
| 2.2.9 | 159 | 6/28/2026 |
| 2.2.8 | 155 | 6/28/2026 |
| 2.2.7 | 162 | 6/7/2026 |
| 2.2.6 | 167 | 6/6/2026 |