pisum

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.Postgres

About 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

Dependencies

ID Version Target Framework
Pisum.Dataprotection.EntityFramework.Shared 1.18.0 net10.0
Npgsql.EntityFrameworkCore.PostgreSQL 10.0.1 net10.0
Pisum.Dataprotection.EntityFramework.Shared 1.18.0 net8.0
Npgsql.EntityFrameworkCore.PostgreSQL 8.0.11 net8.0
Pisum.Dataprotection.EntityFramework.Shared 1.18.0 net9.0
Npgsql.EntityFrameworkCore.PostgreSQL 9.0.4 net9.0
Details
NuGet
2026-04-14 14:55:02 +02:00
16
pisum.net
23 KiB
Assets (2)
Versions (1) View all
1.18.0 2026-04-14