Pisum.Dataprotection.EntityFramework.Postgres (1.18.0)
Published 2026-04-14 14:55:02 +02:00 by mschnecke
Installation
dotnet nuget add source --name pisum --username your_username --password your_token dotnet add package --source pisum --version 1.18.0 Pisum.Dataprotection.EntityFramework.PostgresAbout this package
ASP.NET Core Data Protection Library.
Pisum.Dataprotection.EntityFramework.Postgres
ASP.NET Core Data Protection key storage using Entity Framework Core with PostgreSQL.
Installation
dotnet add package Pisum.Dataprotection.EntityFramework.Postgres
Usage
builder.Services.AddDataProtection()
.ConfigureDataProtection(configuration.GetSection("DataProtection"))
.ConfigureDataProtectionPostgres(configuration.GetSection("Postgres"));
Configuration
{
"DataProtection": {
"ApplicationName": "MyApp"
},
"Postgres": {
"ConnectionString": "Host=localhost;Database=myapp;Username=user;Password=pass"
}
}
Migrations
dotnet ef migrations add InitialDataprotection `
--context DataProtectionContext `
--output-dir ./Migrations
Supported Frameworks
- .NET 8.0
- .NET 9.0
- .NET 10.0