![]() |
VOOZH | about |
dotnet add package Franz.Common.EntityFramework.PostGres --version 2.2.7
NuGet\Install-Package Franz.Common.EntityFramework.PostGres -Version 2.2.7
<PackageReference Include="Franz.Common.EntityFramework.PostGres" Version="2.2.7" />
<PackageVersion Include="Franz.Common.EntityFramework.PostGres" Version="2.2.7" />Directory.Packages.props
<PackageReference Include="Franz.Common.EntityFramework.PostGres" />Project file
paket add Franz.Common.EntityFramework.PostGres --version 2.2.7
#r "nuget: Franz.Common.EntityFramework.PostGres, 2.2.7"
#:package Franz.Common.EntityFramework.PostGres@2.2.7
#addin nuget:?package=Franz.Common.EntityFramework.PostGres&version=2.2.7Install as a Cake Addin
#tool nuget:?package=Franz.Common.EntityFramework.PostGres&version=2.2.7Install as a Cake Tool
A dedicated library within the Franz Framework that extends Entity Framework Core support for PostgreSQL using the Npgsql.EntityFrameworkCore.PostgreSQL provider. This package simplifies PostgreSQL configuration and integration for .NET applications, supporting both single-tenant and multi-tenant environments.
Npgsql.EntityFrameworkCore.PostgreSQL for robust PostgreSQL database support.ServiceCollectionExtensions to streamline dependency injection for PostgreSQL database contexts.Franz.Common.MultiTenancy for tenant-based database configurations.-Current Version: v2.2.7
This package relies on:
Since this package is hosted privately, configure your NuGet client:
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.EntityFramework.Postgres
Define a DbContext for PostgreSQL integration:
using Microsoft.EntityFrameworkCore;
public class PostgresDbContext : DbContext
{
public PostgresDbContext(DbContextOptions<PostgresDbContext> options) : base(options) { }
public DbSet<Order> Orders { get; set; }
}
Use ServiceCollectionExtensions to register PostgreSQL database contexts:
using Franz.Common.EntityFramework.Postgres.Extensions;
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
services.AddPostgresDbContext<PostgresDbContext>(options =>
options.UseNpgsql(
"Host=localhost;Database=MyDatabase;Username=my_user;Password=my_password"
));
}
}
Integrate with Franz.Common.MultiTenancy to support multi-tenant PostgreSQL configurations:
using Franz.Common.MultiTenancy;
using Franz.Common.EntityFramework.Postgres.Extensions;
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
services.AddMultiTenantPostgresDbContext<PostgresDbContext>(tenantOptions =>
{
tenantOptions.ConnectionStringResolver = tenantId =>
$"Host=localhost;Database=Tenant_{tenantId};Username=my_user;Password=my_password";
});
}
}
The Franz.Common.EntityFramework.Postgres package integrates seamlessly with:
Ensure these dependencies are installed to leverage the library's full capabilities.
This package is part of a private framework. Contributions are limited to the internal development team. If you have access, follow these steps:
This library is licensed under the MIT License. See the LICENSE file for more details.
| 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. |
Showing the top 2 NuGet packages that depend on Franz.Common.EntityFramework.PostGres:
| Package | Downloads |
|---|---|
|
Franz.Common.Messaging.EntityFramework
Shared utility library for the Franz Framework. |
|
|
Franz.Common.Http.EntityFramework
Shared utility library for the Franz Framework. |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.2.7 | 117 | 6/7/2026 |
| 2.2.6 | 128 | 6/6/2026 |
| 2.2.5 | 119 | 6/4/2026 |
| 2.2.4 | 116 | 6/3/2026 |
| 2.2.3 | 112 | 6/2/2026 |
| 2.2.2 | 120 | 6/2/2026 |
| 2.2.1 | 123 | 5/24/2026 |
| 2.1.4 | 126 | 4/27/2026 |
| 2.1.3 | 117 | 4/26/2026 |
| 2.1.2 | 122 | 4/26/2026 |
| 2.1.1 | 124 | 4/22/2026 |
| 2.0.2 | 128 | 3/30/2026 |
| 2.0.1 | 120 | 3/29/2026 |
| 1.7.8 | 121 | 3/2/2026 |
| 1.7.7 | 136 | 1/31/2026 |
| 1.7.6 | 128 | 1/22/2026 |
| 1.7.5 | 135 | 1/10/2026 |
| 1.7.4 | 146 | 12/27/2025 |
| 1.7.3 | 220 | 12/22/2025 |
| 1.7.2 | 233 | 12/21/2025 |