Microsoft.AspNetCore.DataProtection.EntityFrameworkCore
10.0.13
Prefix Reserved
See the version list below for details.
dotnet add package Microsoft.AspNetCore.DataProtection.EntityFrameworkCore --version 10.0.13
NuGet\Install-Package Microsoft.AspNetCore.DataProtection.EntityFrameworkCore -Version 10.0.13
<PackageReference Include="Microsoft.AspNetCore.DataProtection.EntityFrameworkCore" Version="10.0.13" />
<PackageVersion Include="Microsoft.AspNetCore.DataProtection.EntityFrameworkCore" Version="10.0.13" />
<PackageReference Include="Microsoft.AspNetCore.DataProtection.EntityFrameworkCore" />
paket add Microsoft.AspNetCore.DataProtection.EntityFrameworkCore --version 10.0.13
#r "nuget: Microsoft.AspNetCore.DataProtection.EntityFrameworkCore, 10.0.13"
#:package Microsoft.AspNetCore.DataProtection.EntityFrameworkCore@10.0.13
#addin nuget:?package=Microsoft.AspNetCore.DataProtection.EntityFrameworkCore&version=10.0.13
#tool nuget:?package=Microsoft.AspNetCore.DataProtection.EntityFrameworkCore&version=10.0.13
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.13)
- Microsoft.EntityFrameworkCore (>= 10.0.13)
NuGet packages (148)
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 |
|
|
TinBasic
Provides basic functionality for a standard application. |
|
|
Aguacongas.IdentityServer.KeysRotation
TheIdServer signing keys rotation. |
|
|
TinCore
Provides a simple way to execute common tasks in many solution. |
GitHub repositories (3)
Showing the top 3 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 11, 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.
|
| Version | Downloads | Last Updated |
|---|---|---|
| 11.0.0-rc.2.26504.105 | 5,839 | 10/13/2026 |
| 11.0.0-rc.1.26425.128 | 9,143 | 9/8/2026 |
| 11.0.0-preview.7.26381.103 | 5,396 | 8/11/2026 |
| 11.0.0-preview.6.26359.118 | 3,772 | 7/14/2026 |
| 11.0.0-preview.5.26302.115 | 2,776 | 6/9/2026 |
| 10.0.13 | 379,105 | 10/13/2026 |
| 10.0.12 | 1,290,379 | 9/8/2026 |
| 10.0.11 | 1,458,495 | 8/11/2026 |
| 10.0.10 | 1,914,541 | 7/14/2026 |
| 10.0.9 | 1,527,307 | 6/9/2026 |
| 9.0.21 | 9,473 | 10/13/2026 |
| 9.0.20 | 33,506 | 9/8/2026 |
| 9.0.19 | 39,923 | 8/11/2026 |
| 9.0.18 | 74,051 | 7/14/2026 |
| 9.0.17 | 60,626 | 6/9/2026 |
| 8.0.32 | 9,947 | 10/13/2026 |
| 8.0.31 | 60,286 | 9/8/2026 |
| 8.0.30 | 51,735 | 8/11/2026 |
| 8.0.29 | 77,497 | 7/14/2026 |
| 8.0.28 | 103,150 | 6/9/2026 |