Microsoft.AspNetCore.DataProtection.EntityFrameworkCore 10.0.2

Prefix Reserved
This package has not been indexed yet. It will appear in search results and will be available for install/restore after indexing is complete.
The package icon will become available after this package is indexed.
dotnet add package Microsoft.AspNetCore.DataProtection.EntityFrameworkCore --version 10.0.2
                    
NuGet\Install-Package Microsoft.AspNetCore.DataProtection.EntityFrameworkCore -Version 10.0.2
                    
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.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Microsoft.AspNetCore.DataProtection.EntityFrameworkCore" Version="10.0.2" />
                    
Directory.Packages.props
<PackageReference Include="Microsoft.AspNetCore.DataProtection.EntityFrameworkCore" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Microsoft.AspNetCore.DataProtection.EntityFrameworkCore --version 10.0.2
                    
#r "nuget: Microsoft.AspNetCore.DataProtection.EntityFrameworkCore, 10.0.2"
                    
#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.
#:package Microsoft.AspNetCore.DataProtection.EntityFrameworkCore@10.0.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Microsoft.AspNetCore.DataProtection.EntityFrameworkCore&version=10.0.2
                    
Install as a Cake Addin
#tool nuget:?package=Microsoft.AspNetCore.DataProtection.EntityFrameworkCore&version=10.0.2
                    
Install as a Cake Tool

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.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (100)

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.

CyberEye.Identity.Lib

Package chứa các thư viện, hàm tiện ích, class model về ASP.NET Identity

GitHub repositories (26)

Showing the top 20 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 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
phongnguyend/Practical.CleanArchitecture
Full-stack .Net 10 Clean Architecture (Microservices, Modular Monolith, Monolith), Blazor, Angular 20, React 19, Vue 3.5, BFF with YARP, NextJs 16, 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.
GZTimeWalker/GZCTF
The GZ::CTF project, an open source CTF platform.
bitfoundation/bitplatform
Build all of your apps using what you already know and love ❤️
neozhu/CleanArchitectureWithBlazorServer
This repository is designed to create an enterprise Blazor Server application that follows the principles of Clean Architecture and implements Blazor Clean Architecture best practices for scalability, maintainability, and testability.
simpleidserver/SimpleIdServer
OpenID, OAuth 2.0, SCIM2.0, UMA2.0, FAPI, CIBA & OPENBANKING Framework for ASP.NET Core
Aguafrommars/TheIdServer
OpenID/Connect, OAuth2, WS-Federation and SAML 2.0 server based on Duende IdentityServer and ITFoxtec Identity SAML 2.0 with its admin UI
skoruba/Duende.IdentityServer.Admin
The administration for the Duende IdentityServer and Asp.Net Core Identity ⚡
Reaparr/Reaparr
Plex downloader that brings content from any server to yours!
netcorepal/netcorepal-cloud-framework
一个基于ASP.NET Core实现的整洁领域驱动设计落地战术框架。 A tactical framework for Clean Domain-Driven Design based on ASP.NET Core.
axzxs2001/Asp.NetCoreExperiment
原来所有项目都移动到**OleVersion**目录下进行保留。新的案例装以.net 5.0为主,一部分对以前案例进行升级,一部分将以前的工作经验总结出来,以供大家参考!
NetDevPack/Security.Jwt
Jwt Manager. Set of components to deal with Jwt Stuff. Automate your key rotating, add support for jwks_uri. Store your cryptography keys in a secure place.
TheUltimateC0der/listrr
listrr.pro creates and maintains lists on trakt.tv completely automated based on your filters.
RaythaHQ/raytha
Raytha is a powerful CMS with an easy-to-use interface and fast performance. It offers custom content types, a template engine, and various access controls. It supports multiple storage providers and an automatically generated REST API. Upgrade your development workflow with Raytha.
carlreid/StreamMaster
A powerful M3U proxy and stream management platform for Plex DVR, Emby, Jellyfin Live TV (and more)
servicetitan/Stl.Fusion.Samples
A collection of samples for Fusion library: https://github.com/servicetitan/Stl.Fusion
FritzAndFriends/TagzApp
An application that discovers content on social media for hashtags
Version Downloads Last Updated
10.0.2 0 1/13/2026
10.0.1 77,133 12/9/2025
10.0.0 306,684 11/11/2025
10.0.0-rc.2.25502.107 4,778 10/14/2025
10.0.0-rc.1.25451.107 9,840 9/9/2025
10.0.0-preview.7.25380.108 2,279 8/12/2025
10.0.0-preview.6.25358.103 359 7/15/2025
10.0.0-preview.5.25277.114 573 6/6/2025
10.0.0-preview.4.25258.110 874 5/12/2025
10.0.0-preview.3.25172.1 357 4/10/2025
10.0.0-preview.2.25164.1 305 3/18/2025
10.0.0-preview.1.25120.3 544 2/25/2025
9.0.12 0 1/13/2026
9.0.11 120,400 11/11/2025
9.0.10 267,374 10/14/2025
9.0.9 482,137 9/9/2025
9.0.8 293,035 8/5/2025
9.0.7 291,979 7/8/2025
9.0.6 368,389 6/10/2025
9.0.5 289,283 5/13/2025
9.0.4 386,508 4/8/2025
9.0.3 277,214 3/11/2025
9.0.2 510,662 2/11/2025
9.0.1 692,449 1/14/2025
9.0.0 485,181 11/12/2024
9.0.0-rc.2.24474.3 2,851 10/8/2024
9.0.0-rc.1.24452.1 1,191 9/10/2024
9.0.0-preview.7.24406.2 668 8/13/2024
9.0.0-preview.6.24328.4 302 7/9/2024
9.0.0-preview.5.24306.11 365 6/11/2024
9.0.0-preview.4.24267.6 276 5/21/2024
9.0.0-preview.3.24172.13 378 4/11/2024
9.0.0-preview.2.24128.4 261 3/12/2024
9.0.0-preview.1.24081.5 303 2/13/2024
8.0.23 0 1/13/2026
8.0.22 87,803 11/11/2025
8.0.21 122,094 10/14/2025
8.0.20 149,241 9/9/2025
8.0.19 158,718 8/4/2025
8.0.18 153,329 7/8/2025
8.0.17 203,714 6/10/2025
8.0.16 317,056 5/13/2025
8.0.15 243,405 4/8/2025
8.0.14 248,838 3/11/2025
8.0.13 425,953 2/11/2025
8.0.12 389,623 1/14/2025
8.0.11 1,085,108 11/12/2024
8.0.10 1,235,112 10/8/2024
8.0.8 1,405,073 8/13/2024
8.0.7 804,505 7/9/2024
8.0.6 1,763,082 5/28/2024
8.0.5 355,535 5/14/2024
8.0.4 755,481 4/9/2024
8.0.3 671,471 3/12/2024
8.0.2 546,158 2/13/2024
8.0.1 638,049 1/9/2024
8.0.0 1,238,151 11/14/2023
8.0.0-rc.2.23480.2 9,769 10/10/2023
8.0.0-rc.1.23421.29 4,182 9/12/2023
8.0.0-preview.7.23375.9 2,953 8/8/2023
8.0.0-preview.6.23329.11 915 7/11/2023
8.0.0-preview.5.23302.2 1,634 6/13/2023
8.0.0-preview.4.23260.4 770 5/16/2023
8.0.0-preview.3.23177.8 547 4/11/2023
8.0.0-preview.2.23153.2 491 3/14/2023
8.0.0-preview.1.23112.2 934 2/21/2023
7.0.20 106,365 5/28/2024
7.0.19 9,223 5/14/2024
7.0.18 36,722 4/9/2024
7.0.17 70,714 3/12/2024
7.0.16 54,608 2/13/2024
7.0.15 63,799 1/9/2024
7.0.14 283,623 11/14/2023
7.0.13 203,416 10/24/2023
7.0.12 109,925 10/10/2023
7.0.11 174,274 9/12/2023
7.0.10 365,091 8/8/2023
7.0.9 154,596 7/11/2023
7.0.8 150,964 6/22/2023
7.0.7 67,873 6/13/2023
7.0.5 443,505 4/11/2023
7.0.4 483,149 3/14/2023
7.0.3 220,798 2/14/2023
7.0.2 221,384 1/10/2023
7.0.1 134,217 12/13/2022
7.0.0 271,603 11/7/2022
7.0.0-rc.2.22476.2 3,003 10/11/2022
7.0.0-rc.1.22427.2 1,362 9/14/2022
7.0.0-preview.7.22376.6 2,463 8/9/2022
7.0.0-preview.6.22330.3 1,023 7/12/2022
7.0.0-preview.5.22303.8 1,016 6/14/2022
7.0.0-preview.4.22251.1 858 5/10/2022
7.0.0-preview.3.22178.4 657 4/13/2022
7.0.0-preview.2.22153.2 446 3/14/2022
7.0.0-preview.1.22109.13 463 2/17/2022
6.0.36 112,356 11/12/2024
6.0.35 68,601 10/8/2024
6.0.33 966,900 8/13/2024
6.0.32 29,518 7/9/2024
6.0.31 39,029 5/28/2024
6.0.30 26,548 5/14/2024
6.0.29 82,287 4/9/2024
6.0.28 181,667 3/12/2024
6.0.27 64,789 2/13/2024
6.0.26 76,461 1/9/2024
6.0.25 249,737 11/14/2023
6.0.24 106,864 10/24/2023
6.0.23 48,650 10/10/2023
6.0.22 162,860 9/12/2023
6.0.21 184,352 8/8/2023
6.0.20 152,080 7/11/2023
6.0.19 66,985 6/22/2023
6.0.18 45,002 6/13/2023
6.0.16 481,210 4/11/2023
6.0.15 225,937 3/14/2023
6.0.14 175,999 2/14/2023
6.0.13 694,702 1/10/2023
6.0.12 129,024 12/13/2022
6.0.11 409,541 11/7/2022
6.0.10 504,115 10/11/2022
6.0.9 649,131 9/13/2022
6.0.8 543,665 8/9/2022
6.0.7 447,195 7/12/2022
6.0.6 268,473 6/14/2022
6.0.5 495,177 5/10/2022
6.0.4 570,234 4/11/2022
6.0.3 590,394 3/8/2022
6.0.2 410,359 2/8/2022
6.0.1 694,477 12/14/2021
6.0.0 559,294 11/8/2021
6.0.0-rc.2.21480.10 3,429 10/12/2021
6.0.0-rc.1.21452.15 2,146 9/14/2021
6.0.0-preview.7.21378.6 2,113 8/10/2021
6.0.0-preview.6.21355.2 859 7/14/2021
6.0.0-preview.5.21301.17 1,301 6/15/2021
6.0.0-preview.4.21253.5 579 5/24/2021
6.0.0-preview.3.21201.13 629 4/8/2021
6.0.0-preview.2.21154.6 664 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 650 2/12/2021 6.0.0-preview.1.21103.6 is deprecated because it is no longer maintained.
5.0.17 236,345 5/10/2022 5.0.17 is deprecated because it is no longer maintained.
5.0.16 13,759 4/11/2022 5.0.16 is deprecated because it is no longer maintained.
5.0.15 125,394 3/8/2022 5.0.15 is deprecated because it is no longer maintained.
5.0.14 22,560 2/8/2022 5.0.14 is deprecated because it is no longer maintained.
5.0.13 44,830 12/14/2021 5.0.13 is deprecated because it is no longer maintained.
5.0.12 77,054 11/7/2021 5.0.12 is deprecated because it is no longer maintained.
5.0.11 292,570 10/12/2021 5.0.11 is deprecated because it is no longer maintained.
5.0.10 212,474 9/14/2021 5.0.10 is deprecated because it is no longer maintained.
5.0.9 138,335 8/10/2021 5.0.9 is deprecated because it is no longer maintained.
5.0.8 230,957 7/13/2021 5.0.8 is deprecated because it is no longer maintained.
5.0.7 289,971 6/8/2021 5.0.7 is deprecated because it is no longer maintained.
5.0.6 119,839 5/11/2021 5.0.6 is deprecated because it is no longer maintained.
5.0.5 252,640 4/6/2021 5.0.5 is deprecated because it is no longer maintained.
5.0.4 105,382 3/9/2021 5.0.4 is deprecated because it is no longer maintained.
5.0.3 139,597 2/9/2021 5.0.3 is deprecated because it is no longer maintained.
5.0.2 92,368 1/12/2021 5.0.2 is deprecated because it is no longer maintained.
5.0.1 168,105 12/8/2020 5.0.1 is deprecated because it is no longer maintained.
5.0.0 99,484 11/9/2020 5.0.0 is deprecated because it is no longer maintained.
5.0.0-rc.2.20475.17 1,256 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,668 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 713 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 1,144 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 784 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 806 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 879 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 815 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 760 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 734 3/16/2020 5.0.0-preview.1.20124.5 is deprecated because it is no longer maintained.
3.1.32 110,087 12/13/2022
3.1.31 14,946 11/8/2022
3.1.30 5,181 10/11/2022
3.1.29 7,459 9/13/2022
3.1.28 13,016 8/9/2022
3.1.27 15,007 7/12/2022
3.1.26 15,038 6/14/2022
3.1.25 20,034 5/10/2022
3.1.24 19,541 4/11/2022
3.1.23 16,111 3/8/2022
3.1.22 61,998 12/14/2021
3.1.21 59,402 11/7/2021
3.1.20 29,379 10/11/2021
3.1.19 19,802 9/14/2021
3.1.18 97,023 8/10/2021
3.1.17 42,761 7/13/2021
3.1.16 33,393 6/8/2021
3.1.15 21,883 5/11/2021
3.1.14 50,702 4/6/2021
3.1.13 35,001 3/9/2021
3.1.12 36,921 2/9/2021
3.1.11 79,303 1/12/2021
3.1.10 192,879 11/9/2020
3.1.9 445,444 10/13/2020
3.1.8 622,147 9/8/2020
3.1.7 189,394 8/11/2020
3.1.6 238,652 7/14/2020
3.1.5 141,102 6/9/2020
3.1.4 135,764 5/12/2020
3.1.3 306,752 3/24/2020
3.1.2 138,460 2/18/2020
3.1.1 176,051 1/14/2020
3.1.0 390,057 12/3/2019
3.1.0-preview3.19555.2 725 11/13/2019 3.1.0-preview3.19555.2 is deprecated because it is no longer maintained.
3.1.0-preview2.19528.8 694 11/1/2019 3.1.0-preview2.19528.8 is deprecated because it is no longer maintained.
3.1.0-preview1.19508.20 744 10/15/2019 3.1.0-preview1.19508.20 is deprecated because it is no longer maintained.
3.0.3 3,756 2/18/2020 3.0.3 is deprecated because it is no longer maintained.
3.0.2 2,812 1/14/2020 3.0.2 is deprecated because it is no longer maintained.
3.0.0 42,547 9/23/2019 3.0.0 is deprecated because it is no longer maintained.
3.0.0-rc1.19457.4 718 9/16/2019 3.0.0-rc1.19457.4 is deprecated because it is no longer maintained.
3.0.0-preview9.19424.4 954 9/4/2019 3.0.0-preview9.19424.4 is deprecated because it is no longer maintained.
3.0.0-preview8.19405.7 792 8/13/2019 3.0.0-preview8.19405.7 is deprecated because it is no longer maintained.
3.0.0-preview7.19365.7 759 7/23/2019 3.0.0-preview7.19365.7 is deprecated because it is no longer maintained.
3.0.0-preview6.19307.2 767 6/12/2019 3.0.0-preview6.19307.2 is deprecated because it is no longer maintained.
3.0.0-preview5-19227-01 986 5/6/2019 3.0.0-preview5-19227-01 is deprecated because it is no longer maintained.
3.0.0-preview4-19216-03 750 4/18/2019 3.0.0-preview4-19216-03 is deprecated because it is no longer maintained.
3.0.0-preview3-19153-02 744 3/6/2019 3.0.0-preview3-19153-02 is deprecated because it is no longer maintained.
3.0.0-preview-19075-0444 867 1/29/2019 3.0.0-preview-19075-0444 is deprecated because it is no longer maintained.
3.0.0-preview-18579-0056 845 12/3/2018 3.0.0-preview-18579-0056 is deprecated because it is no longer maintained.
2.2.8 359,343 11/18/2019 2.2.8 is deprecated because it is no longer maintained.
2.2.0 723,660 12/3/2018 2.2.0 is deprecated because it is no longer maintained.
2.2.0-preview3-35497 1,541 10/17/2018 2.2.0-preview3-35497 is deprecated because it is no longer maintained.
2.2.0-preview2-35157 1,894 9/12/2018 2.2.0-preview2-35157 is deprecated because it is no longer maintained.