Microsoft.AspNetCore.DataProtection.EntityFrameworkCore
10.0.8
Prefix Reserved
See the version list below for details.
dotnet add package Microsoft.AspNetCore.DataProtection.EntityFrameworkCore --version 10.0.8
NuGet\Install-Package Microsoft.AspNetCore.DataProtection.EntityFrameworkCore -Version 10.0.8
<PackageReference Include="Microsoft.AspNetCore.DataProtection.EntityFrameworkCore" Version="10.0.8" />
<PackageVersion Include="Microsoft.AspNetCore.DataProtection.EntityFrameworkCore" Version="10.0.8" />
<PackageReference Include="Microsoft.AspNetCore.DataProtection.EntityFrameworkCore" />
paket add Microsoft.AspNetCore.DataProtection.EntityFrameworkCore --version 10.0.8
#r "nuget: Microsoft.AspNetCore.DataProtection.EntityFrameworkCore, 10.0.8"
#:package Microsoft.AspNetCore.DataProtection.EntityFrameworkCore@10.0.8
#addin nuget:?package=Microsoft.AspNetCore.DataProtection.EntityFrameworkCore&version=10.0.8
#tool nuget:?package=Microsoft.AspNetCore.DataProtection.EntityFrameworkCore&version=10.0.8
About
Microsoft.AspNetCore.DataProtection.EntityFrameworkCore provides a mechanism for storing data protection keys to a database using Entity Framework Core.
How to Use
To use Microsoft.AspNetCore.DataProtection.EntityFrameworkCore, follow these steps:
Installation
dotnet add package Microsoft.AspNetCore.DataProtection.EntityFrameworkCore
Configuration
To store keys in a database, use the PersistKeysToDbContext extension method. For example:
builder.Services.AddDataProtection()
.PersistKeysToDbContext<MyDbContext>();
Ensure that your DB context (MyDbContext in the above example) implements IDataProtectionKeyContext. For example:
class MyDbContext : DbContext, IDataProtectionKeyContext
{
public MyKeysContext(DbContextOptions<MyKeysContext> options)
: base(options)
{
}
// This maps to the table that stores keys
public DbSet<DataProtectionKey> DataProtectionKeys { get; set; }
}
Additional Documentation
For additional documentation and examples, refer to the official documentation on the Entity Framework Core key storage provider.
Feedback & Contributing
Microsoft.AspNetCore.DataProtection.EntityFrameworkCore is released as open-source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.
| 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
- Microsoft.AspNetCore.DataProtection (>= 10.0.8)
- Microsoft.EntityFrameworkCore (>= 10.0.8)
NuGet packages (117)
Showing the top 5 NuGet packages that depend on Microsoft.AspNetCore.DataProtection.EntityFrameworkCore:
| Package | Downloads |
|---|---|
|
Hopex.ApplicationServer.SiteModule
Hopex Application site module |
|
|
ImmediaC.SimpleCms
ASP.NET Core based CMS |
|
|
Aguacongas.IdentityServer.KeysRotation
TheIdServer signing keys rotation. |
|
|
TinBasic
Provides basic functionality for a standard application. |
|
|
CyberEye.Identity.Lib
Package chứa các thư viện, hàm tiện ích, class model về ASP.NET Identity |
GitHub repositories (4)
Showing the top 4 popular GitHub repositories that depend on Microsoft.AspNetCore.DataProtection.EntityFrameworkCore:
| Repository | Stars |
|---|---|
|
dotnet/AspNetCore.Docs
Documentation for ASP.NET Core
|
|
|
Kareadita/Kavita
Kavita is a fast, feature rich, cross platform reading server. Built with the goal of being a full solution for all your reading needs. Setup your own server and share your reading collection with your friends and family.
|
|
|
dodyg/practical-aspnetcore
Practical samples of ASP.NET Core 10, 9, 8.0, 7.0, 6.0, 5.0, 3.1, 2.2, and 2.1,projects you can use. Readme contains explanations on all projects.
|
|
|
skoruba/IdentityServer4.Admin
The administration for the IdentityServer4 and Asp.Net Core Identity
|
| Version | Downloads | Last Updated |
|---|---|---|
| 11.0.0-preview.4.26230.115 | 203 | 5/12/2026 |
| 11.0.0-preview.3.26207.106 | 289 | 4/14/2026 |
| 11.0.0-preview.2.26159.112 | 325 | 3/10/2026 |
| 11.0.0-preview.1.26104.118 | 256 | 2/10/2026 |
| 10.0.8 | 157,589 | 5/12/2026 |
| 10.0.7 | 553,829 | 4/21/2026 |
| 10.0.5 | 496,580 | 3/12/2026 |
| 10.0.4 | 60,177 | 3/10/2026 |
| 10.0.3 | 400,353 | 2/10/2026 |
| 10.0.2 | 535,975 | 1/13/2026 |
| 9.0.16 | 8,829 | 5/12/2026 |
| 9.0.15 | 50,680 | 4/14/2026 |
| 9.0.14 | 47,380 | 3/10/2026 |
| 9.0.13 | 66,129 | 2/10/2026 |
| 9.0.12 | 59,060 | 1/13/2026 |
| 8.0.27 | 15,293 | 5/12/2026 |
| 8.0.26 | 54,121 | 4/14/2026 |
| 8.0.25 | 62,398 | 3/10/2026 |
| 8.0.24 | 77,457 | 2/10/2026 |