Pisum.Dataprotection.EntityFramework.Postgres 1.15.0

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

No packages depend on Pisum.Dataprotection.EntityFramework.Postgres.

Version Downloads Last updated
1.15.0 142 01/16/2026
1.14.0 280 10/09/2025