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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Franz.Common.EntityFramework.SQLServer" Version="3.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Franz.Common.EntityFramework.SQLServer" Version="3.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Franz.Common.EntityFramework.SQLServer" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Franz.Common.EntityFramework.SQLServer --version 3.0.0
                    
#r "nuget: Franz.Common.EntityFramework.SQLServer, 3.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Franz.Common.EntityFramework.SQLServer@3.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Franz.Common.EntityFramework.SQLServer&version=3.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Franz.Common.EntityFramework.SQLServer&version=3.0.0
                    
Install as a Cake Tool

Franz.Common.EntityFramework.SQLServer

SQL Server EF Core provider registration for Franz DbContextBase contexts.

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
Loading failed