Endatix.Persistence.PostgreSql
0.7.0
dotnet add package Endatix.Persistence.PostgreSql --version 0.7.0
NuGet\Install-Package Endatix.Persistence.PostgreSql -Version 0.7.0
<PackageReference Include="Endatix.Persistence.PostgreSql" Version="0.7.0" />
<PackageVersion Include="Endatix.Persistence.PostgreSql" Version="0.7.0" />
<PackageReference Include="Endatix.Persistence.PostgreSql" />
paket add Endatix.Persistence.PostgreSql --version 0.7.0
#r "nuget: Endatix.Persistence.PostgreSql, 0.7.0"
#:package Endatix.Persistence.PostgreSql@0.7.0
#addin nuget:?package=Endatix.Persistence.PostgreSql&version=0.7.0
#tool nuget:?package=Endatix.Persistence.PostgreSql&version=0.7.0
Endatix.Persistence.PostgreSql
Adds support for using PostgreSQL database persistence with the Endatix Platform. This package is crucial for applications that require PostgreSQL as the primary database.
Endatix Platform is an open-source data collection and management library for .NET. It is designed for building secure, scalable, and integrated form-centric applications that work with SurveyJS. Endatix empowers business users with advanced workflows, automation, and meaningful insights.
Installation:
dotnet add package Endatix.Persistence.PostgreSql
More Information:
For detailed installation instructions, please visit Endatix Installation Guide.
Migrations Guide
Run the commands from the oss folder.
Always use Endatix.WebHost as startup project, and this provider-specific persistence project as migrations project.
Add migration
App entities (AppDbContext)
dotnet ef migrations add <MigrationName> \
--startup-project src/Endatix.WebHost \
--project src/Endatix.Persistence.PostgreSql \
--context AppDbContext \
--output-dir Migrations/AppEntities
Identity entities (AppIdentityDbContext)
dotnet ef migrations add <MigrationName> \
--startup-project src/Endatix.WebHost \
--project src/Endatix.Persistence.PostgreSql \
--context AppIdentityDbContext \
--output-dir Migrations/AppIdentity
Remove last migration
- First list your migrations with
dotnet ef migrations listto check if the migration you want to remove must be unapplied on your local DB
dotnet ef migrations list \
--startup-project src/Endatix.WebHost \
--project src/Endatix.Persistence.PostgreSql \
--context <AppDbContext|AppIdentityDbContext>
- If required update to the migration via
dotnet ef database update
dotnet ef database update <PreviousMigrationName> \
--startup-project src/Endatix.WebHost \
--project src/Endatix.Persistence.PostgreSql \
--context <AppDbContext|AppIdentityDbContext>
- Remove the last migration
dotnet ef migrations remove \
--startup-project src/Endatix.WebHost \
--project src/Endatix.Persistence.PostgreSql \
--context <AppDbContext|AppIdentityDbContext>
Apply migrations
App entities (AppDbContext)
dotnet ef database update \
--startup-project src/Endatix.WebHost \
--project src/Endatix.Persistence.PostgreSql \
--context AppDbContext
Identity entities (AppIdentityDbContext)
dotnet ef database update \
--startup-project src/Endatix.WebHost \
--project src/Endatix.Persistence.PostgreSql \
--context AppIdentityDbContext
Local PostgreSQL Setup
- Start PostgreSQL in Docker:
docker run --name postgres_db -e POSTGRES_PASSWORD=<MASTER_PASSWORD> -p 5432:5432 -d postgres
- Create a PostgreSQL login/user and database (for example via pgAdmin).
- Update
src/Endatix.WebHost/appsettings.Development.json:
"DefaultConnection": "Host=localhost;Database=endatix-db;Username=<PG_LOGIN>;Password=<PG_PASSWORD>",
"DefaultConnection_DbProvider": "PostgreSql"
| 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
- Endatix.Core (>= 0.7.0)
- Endatix.Framework (>= 0.7.0)
- Endatix.Infrastructure (>= 0.7.0)
- Endatix.Outbox.Engine (>= 1.0.0)
- Microsoft.EntityFrameworkCore (>= 10.0.0)
- Npgsql.EntityFrameworkCore.PostgreSQL (>= 10.0.0)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Endatix.Persistence.PostgreSql:
| Package | Downloads |
|---|---|
|
Endatix.Hosting
Package Description |
|
|
Endatix.Extensions.Hosting
Provides useful extension methods and utilities for hosting the Endatix Platform. It simplifies the configuration and deployment. Endatix Platform is an open-source data collection and management library for .NET. |
GitHub repositories
This package is not used by any popular GitHub repositories.