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.
.NET 8.0
- Pisum.Dataprotection.EntityFramework.Shared (>= 1.15.0)
- Npgsql.EntityFrameworkCore.PostgreSQL (>= 8.0.11)
.NET 9.0
- Pisum.Dataprotection.EntityFramework.Shared (>= 1.15.0)
- Npgsql.EntityFrameworkCore.PostgreSQL (>= 9.0.4)
.NET 10.0
- Pisum.Dataprotection.EntityFramework.Shared (>= 1.15.0)
- Npgsql.EntityFrameworkCore.PostgreSQL (>= 10.0.0)