Microsoft.AspNetCore.DataProtection.EntityFrameworkCore 10.0.0-preview.1.25120.3

Prefix Reserved
This is a prerelease version of Microsoft.AspNetCore.DataProtection.EntityFrameworkCore.
dotnet add package Microsoft.AspNetCore.DataProtection.EntityFrameworkCore --version 10.0.0-preview.1.25120.3                
NuGet\Install-Package Microsoft.AspNetCore.DataProtection.EntityFrameworkCore -Version 10.0.0-preview.1.25120.3                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Microsoft.AspNetCore.DataProtection.EntityFrameworkCore" Version="10.0.0-preview.1.25120.3" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Microsoft.AspNetCore.DataProtection.EntityFrameworkCore --version 10.0.0-preview.1.25120.3                
#r "nuget: Microsoft.AspNetCore.DataProtection.EntityFrameworkCore, 10.0.0-preview.1.25120.3"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Microsoft.AspNetCore.DataProtection.EntityFrameworkCore as a Cake Addin
#addin nuget:?package=Microsoft.AspNetCore.DataProtection.EntityFrameworkCore&version=10.0.0-preview.1.25120.3&prerelease

// Install Microsoft.AspNetCore.DataProtection.EntityFrameworkCore as a Cake Tool
#tool nuget:?package=Microsoft.AspNetCore.DataProtection.EntityFrameworkCore&version=10.0.0-preview.1.25120.3&prerelease                

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 Compatible and additional computed target framework versions.
.NET net10.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (83)

Showing the top 5 NuGet packages that depend on Microsoft.AspNetCore.DataProtection.EntityFrameworkCore:

Package Downloads
NanoCore

The project is inspired by years of tedious repetitions, continuously re-writing similar code-snippets and libraries, to handle common functionality, not related to the business domain, such as logging, data persistence, message queuing, documentation, validation and similar.

Hopex.ApplicationServer.SiteModule

Hopex Application site module

ImmediaC.SimpleCms

ASP.NET Core based CMS

Aguacongas.IdentityServer.KeysRotation

TheIdServer signing keys rotation.

Bnsights.Core

Package Description

GitHub repositories (22)

Showing the top 5 popular GitHub repositories that depend on Microsoft.AspNetCore.DataProtection.EntityFrameworkCore:

Repository Stars
dotnet/AspNetCore.Docs
Documentation for ASP.NET Core
dodyg/practical-aspnetcore
Practical samples of ASP.NET Core 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
phongnguyend/Practical.CleanArchitecture
Full-stack .Net 9 Clean Architecture (Microservices, Modular Monolith, Monolith), Blazor, Angular 19, React 19, Vue 3.5, BFF with YARP, NextJs 15, Domain-Driven Design, CQRS, SOLID, Asp.Net Core Identity Custom Storage, OpenID Connect, EF Core, OpenTelemetry, SignalR, Background Services, Health Checks, Rate Limiting, Clouds (Azure, AWS, GCP), ..
Webreaper/Damselfly
Damselfly is a server-based Photograph Management app. The goal of Damselfly is to index an extremely large collection of images, and allow easy search and retrieval of those images, using metadata such as the IPTC keyword tags, as well as the folder and file names. Damselfly includes support for object/face detection.
Version Downloads Last updated
10.0.0-preview.1.25120.3 185 2/25/2025
9.0.3 0 3/11/2025
9.0.2 108,734 2/11/2025
9.0.1 141,019 1/14/2025
9.0.0 252,715 11/12/2024
9.0.0-rc.2.24474.3 2,261 10/8/2024
9.0.0-rc.1.24452.1 1,102 9/10/2024
9.0.0-preview.7.24406.2 379 8/13/2024
9.0.0-preview.6.24328.4 208 7/9/2024
9.0.0-preview.5.24306.11 283 6/11/2024
9.0.0-preview.4.24267.6 198 5/21/2024
9.0.0-preview.3.24172.13 300 4/11/2024
9.0.0-preview.2.24128.4 189 3/12/2024
9.0.0-preview.1.24081.5 221 2/13/2024
8.0.14 0 3/11/2025
8.0.13 53,341 2/11/2025
8.0.12 91,553 1/14/2025
8.0.11 446,737 11/12/2024
8.0.10 624,729 10/8/2024
8.0.8 942,941 8/13/2024
8.0.7 536,791 7/9/2024
8.0.6 874,192 5/28/2024
8.0.5 248,339 5/14/2024
8.0.4 553,508 4/9/2024
8.0.3 507,974 3/12/2024
8.0.2 429,448 2/13/2024
8.0.1 504,627 1/9/2024
8.0.0 586,207 11/14/2023
8.0.0-rc.2.23480.2 9,573 10/10/2023
8.0.0-rc.1.23421.29 4,092 9/12/2023
8.0.0-preview.7.23375.9 2,866 8/8/2023
8.0.0-preview.6.23329.11 814 7/11/2023
8.0.0-preview.5.23302.2 1,510 6/13/2023
8.0.0-preview.4.23260.4 636 5/16/2023
8.0.0-preview.3.23177.8 424 4/11/2023
8.0.0-preview.2.23153.2 364 3/14/2023
8.0.0-preview.1.23112.2 807 2/21/2023
7.0.20 41,566 5/28/2024
7.0.19 6,675 5/14/2024
7.0.18 32,021 4/9/2024
7.0.17 66,296 3/12/2024
7.0.16 46,075 2/13/2024
7.0.15 58,604 1/9/2024
7.0.14 215,146 11/14/2023
7.0.13 176,946 10/24/2023
7.0.12 102,284 10/10/2023
7.0.11 161,329 9/12/2023
7.0.10 284,035 8/8/2023
7.0.9 148,606 7/11/2023
7.0.8 142,806 6/22/2023
7.0.7 64,681 6/13/2023
7.0.5 388,157 4/11/2023
7.0.4 469,979 3/14/2023
7.0.3 210,391 2/14/2023
7.0.2 212,689 1/10/2023
7.0.1 123,595 12/13/2022
7.0.0 245,656 11/7/2022
7.0.0-rc.2.22476.2 2,880 10/11/2022
7.0.0-rc.1.22427.2 1,235 9/14/2022
7.0.0-preview.7.22376.6 2,325 8/9/2022
7.0.0-preview.6.22330.3 902 7/12/2022
7.0.0-preview.5.22303.8 867 6/14/2022
7.0.0-preview.4.22251.1 718 5/10/2022
7.0.0-preview.3.22178.4 524 4/13/2022
7.0.0-preview.2.22153.2 298 3/14/2022
7.0.0-preview.1.22109.13 339 2/17/2022
6.0.36 26,333 11/12/2024
6.0.35 25,397 10/8/2024
6.0.33 247,511 8/13/2024
6.0.32 22,212 7/9/2024
6.0.31 31,233 5/28/2024
6.0.30 16,366 5/14/2024
6.0.29 65,484 4/9/2024
6.0.28 130,016 3/12/2024
6.0.27 56,421 2/13/2024
6.0.26 66,625 1/9/2024
6.0.25 215,870 11/14/2023
6.0.24 76,810 10/24/2023
6.0.23 45,523 10/10/2023
6.0.22 142,161 9/12/2023
6.0.21 144,212 8/8/2023
6.0.20 142,710 7/11/2023
6.0.19 54,978 6/22/2023
6.0.18 41,749 6/13/2023
6.0.16 400,745 4/11/2023
6.0.15 203,439 3/14/2023
6.0.14 163,548 2/14/2023
6.0.13 671,133 1/10/2023
6.0.12 118,560 12/13/2022
6.0.11 390,055 11/7/2022
6.0.10 466,940 10/11/2022
6.0.9 605,896 9/13/2022
6.0.8 499,997 8/9/2022
6.0.7 424,151 7/12/2022
6.0.6 241,888 6/14/2022
6.0.5 464,867 5/10/2022
6.0.4 539,690 4/11/2022
6.0.3 555,472 3/8/2022
6.0.2 381,593 2/8/2022
6.0.1 643,524 12/14/2021
6.0.0 522,608 11/8/2021
6.0.0-rc.2.21480.10 3,277 10/12/2021
6.0.0-rc.1.21452.15 1,993 9/14/2021
6.0.0-preview.7.21378.6 1,979 8/10/2021
6.0.0-preview.6.21355.2 696 7/14/2021
6.0.0-preview.5.21301.17 1,151 6/15/2021
6.0.0-preview.4.21253.5 427 5/24/2021
6.0.0-preview.3.21201.13 482 4/8/2021
6.0.0-preview.2.21154.6 419 3/11/2021 6.0.0-preview.2.21154.6 is deprecated because it is no longer maintained.
6.0.0-preview.1.21103.6 406 2/12/2021 6.0.0-preview.1.21103.6 is deprecated because it is no longer maintained.
5.0.17 225,448 5/10/2022 5.0.17 is deprecated because it is no longer maintained.
5.0.16 12,270 4/11/2022 5.0.16 is deprecated because it is no longer maintained.
5.0.15 122,360 3/8/2022 5.0.15 is deprecated because it is no longer maintained.
5.0.14 21,238 2/8/2022 5.0.14 is deprecated because it is no longer maintained.
5.0.13 42,871 12/14/2021 5.0.13 is deprecated because it is no longer maintained.
5.0.12 74,202 11/7/2021 5.0.12 is deprecated because it is no longer maintained.
5.0.11 286,985 10/12/2021 5.0.11 is deprecated because it is no longer maintained.
5.0.10 198,227 9/14/2021 5.0.10 is deprecated because it is no longer maintained.
5.0.9 129,595 8/10/2021 5.0.9 is deprecated because it is no longer maintained.
5.0.8 197,293 7/13/2021 5.0.8 is deprecated because it is no longer maintained.
5.0.7 276,903 6/8/2021 5.0.7 is deprecated because it is no longer maintained.
5.0.6 114,828 5/11/2021 5.0.6 is deprecated because it is no longer maintained.
5.0.5 225,370 4/6/2021 5.0.5 is deprecated because it is no longer maintained.
5.0.4 102,286 3/9/2021 5.0.4 is deprecated because it is no longer maintained.
5.0.3 135,304 2/9/2021 5.0.3 is deprecated because it is no longer maintained.
5.0.2 88,602 1/12/2021 5.0.2 is deprecated because it is no longer maintained.
5.0.1 159,473 12/8/2020 5.0.1 is deprecated because it is no longer maintained.
5.0.0 92,813 11/9/2020 5.0.0 is deprecated because it is no longer maintained.
5.0.0-rc.2.20475.17 1,012 10/13/2020 5.0.0-rc.2.20475.17 is deprecated because it is no longer maintained.
5.0.0-rc.1.20451.17 1,421 9/14/2020 5.0.0-rc.1.20451.17 is deprecated because it is no longer maintained.
5.0.0-preview.8.20414.8 460 8/25/2020 5.0.0-preview.8.20414.8 is deprecated because it is no longer maintained.
5.0.0-preview.7.20365.19 894 7/21/2020 5.0.0-preview.7.20365.19 is deprecated because it is no longer maintained.
5.0.0-preview.6.20312.15 537 6/25/2020 5.0.0-preview.6.20312.15 is deprecated because it is no longer maintained.
5.0.0-preview.5.20279.2 559 6/10/2020 5.0.0-preview.5.20279.2 is deprecated because it is no longer maintained.
5.0.0-preview.4.20257.10 625 5/18/2020 5.0.0-preview.4.20257.10 is deprecated because it is no longer maintained.
5.0.0-preview.3.20215.14 551 4/23/2020 5.0.0-preview.3.20215.14 is deprecated because it is no longer maintained.
5.0.0-preview.2.20167.3 521 4/2/2020 5.0.0-preview.2.20167.3 is deprecated because it is no longer maintained.
5.0.0-preview.1.20124.5 488 3/16/2020 5.0.0-preview.1.20124.5 is deprecated because it is no longer maintained.
3.1.32 72,565 12/13/2022
3.1.31 11,901 11/8/2022
3.1.30 3,913 10/11/2022
3.1.29 6,195 9/13/2022
3.1.28 11,642 8/9/2022
3.1.27 13,299 7/12/2022
3.1.26 13,573 6/14/2022
3.1.25 16,486 5/10/2022
3.1.24 16,648 4/11/2022
3.1.23 14,765 3/8/2022
3.1.22 58,882 12/14/2021
3.1.21 57,986 11/7/2021
3.1.20 28,040 10/11/2021
3.1.19 17,588 9/14/2021
3.1.18 92,218 8/10/2021
3.1.17 38,917 7/13/2021
3.1.16 30,108 6/8/2021
3.1.15 20,447 5/11/2021
3.1.14 48,778 4/6/2021
3.1.13 33,547 3/9/2021
3.1.12 34,950 2/9/2021
3.1.11 75,655 1/12/2021
3.1.10 188,218 11/9/2020
3.1.9 436,220 10/13/2020
3.1.8 614,588 9/8/2020
3.1.7 183,955 8/11/2020
3.1.6 227,784 7/14/2020
3.1.5 137,743 6/9/2020
3.1.4 132,297 5/12/2020
3.1.3 291,671 3/24/2020
3.1.2 135,247 2/18/2020
3.1.1 172,154 1/14/2020
3.1.0 379,712 12/3/2019
3.1.0-preview3.19555.2 475 11/13/2019 3.1.0-preview3.19555.2 is deprecated because it is no longer maintained.
3.1.0-preview2.19528.8 433 11/1/2019 3.1.0-preview2.19528.8 is deprecated because it is no longer maintained.
3.1.0-preview1.19508.20 487 10/15/2019 3.1.0-preview1.19508.20 is deprecated because it is no longer maintained.
3.0.3 2,535 2/18/2020 3.0.3 is deprecated because it is no longer maintained.
3.0.2 1,613 1/14/2020 3.0.2 is deprecated because it is no longer maintained.
3.0.0 39,740 9/23/2019 3.0.0 is deprecated because it is no longer maintained.
3.0.0-rc1.19457.4 474 9/16/2019 3.0.0-rc1.19457.4 is deprecated because it is no longer maintained.
3.0.0-preview9.19424.4 695 9/4/2019 3.0.0-preview9.19424.4 is deprecated because it is no longer maintained.
3.0.0-preview8.19405.7 534 8/13/2019 3.0.0-preview8.19405.7 is deprecated because it is no longer maintained.
3.0.0-preview7.19365.7 483 7/23/2019 3.0.0-preview7.19365.7 is deprecated because it is no longer maintained.
3.0.0-preview6.19307.2 500 6/12/2019 3.0.0-preview6.19307.2 is deprecated because it is no longer maintained.
3.0.0-preview5-19227-01 753 5/6/2019 3.0.0-preview5-19227-01 is deprecated because it is no longer maintained.
3.0.0-preview4-19216-03 489 4/18/2019 3.0.0-preview4-19216-03 is deprecated because it is no longer maintained.
3.0.0-preview3-19153-02 477 3/6/2019 3.0.0-preview3-19153-02 is deprecated because it is no longer maintained.
3.0.0-preview-19075-0444 603 1/29/2019 3.0.0-preview-19075-0444 is deprecated because it is no longer maintained.
3.0.0-preview-18579-0056 583 12/3/2018 3.0.0-preview-18579-0056 is deprecated because it is no longer maintained.
2.2.8 320,153 11/18/2019 2.2.8 is deprecated because it is no longer maintained.
2.2.0 683,646 12/3/2018 2.2.0 is deprecated because it is no longer maintained.
2.2.0-preview3-35497 1,254 10/17/2018 2.2.0-preview3-35497 is deprecated because it is no longer maintained.
2.2.0-preview2-35157 1,482 9/12/2018 2.2.0-preview2-35157 is deprecated because it is no longer maintained.