Microsoft.AspNetCore.DataProtection.EntityFrameworkCore
10.0.0-preview.3.25172.1
Prefix Reserved
dotnet add package Microsoft.AspNetCore.DataProtection.EntityFrameworkCore --version 10.0.0-preview.3.25172.1
NuGet\Install-Package Microsoft.AspNetCore.DataProtection.EntityFrameworkCore -Version 10.0.0-preview.3.25172.1
<PackageReference Include="Microsoft.AspNetCore.DataProtection.EntityFrameworkCore" Version="10.0.0-preview.3.25172.1" />
<PackageVersion Include="Microsoft.AspNetCore.DataProtection.EntityFrameworkCore" Version="10.0.0-preview.3.25172.1" />
<PackageReference Include="Microsoft.AspNetCore.DataProtection.EntityFrameworkCore" />
paket add Microsoft.AspNetCore.DataProtection.EntityFrameworkCore --version 10.0.0-preview.3.25172.1
#r "nuget: Microsoft.AspNetCore.DataProtection.EntityFrameworkCore, 10.0.0-preview.3.25172.1"
#addin nuget:?package=Microsoft.AspNetCore.DataProtection.EntityFrameworkCore&version=10.0.0-preview.3.25172.1&prerelease
#tool nuget:?package=Microsoft.AspNetCore.DataProtection.EntityFrameworkCore&version=10.0.0-preview.3.25172.1&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 | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net10.0 is compatible. |
-
net10.0
- Microsoft.AspNetCore.DataProtection (>= 10.0.0-preview.3.25172.1)
- Microsoft.EntityFrameworkCore (>= 10.0.0-preview.3.25171.6)
NuGet packages (84)
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. |
|
Skoruba.IdentityServer4.Shared.Configuration
Shared common layer for the administration of the IdentityServer4 and Asp.Net Core Identity |
GitHub repositories (24)
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 Preview 3, 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.
|
|
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 is a repository for creating a Blazor Server dashboard application following the principles of Clean Architecture
|
|
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
|
|
lanedirt/AliasVault
A self-hostable, end-to-end encrypted password manager with a built-in alias generator and email server.
|
|
skoruba/Duende.IdentityServer.Admin
The administration for the Duende IdentityServer and Asp.Net Core Identity ⚡
|
|
PlexRipper/PlexRipper
A cross-platform Plex media downloader that seamlessly adds media from other Plex servers to your own!
|
|
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.
|
|
netcorepal/netcorepal-cloud-framework
一个基于ASP.NET Core实现的整洁领域驱动设计落地战术框架。 A tactical framework for Clean Domain-Driven Design based on ASP.NET Core.
|
|
tinglesoftware/dependabot-azure-devops
Tools for updating dependencies in Azure DevOps repositories using https://dependabot.com
|
|
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.
|
|
servicetitan/Stl.Fusion.Samples
A collection of samples for Fusion library: https://github.com/servicetitan/Stl.Fusion
|
Version | Downloads | Last updated | |
---|---|---|---|
10.0.0-preview.3.25172.1 | 221 | 4/10/2025 | |
10.0.0-preview.2.25164.1 | 216 | 3/18/2025 | |
10.0.0-preview.1.25120.3 | 240 | 2/25/2025 | |
9.0.4 | 85,539 | 4/8/2025 | |
9.0.3 | 129,428 | 3/11/2025 | |
9.0.2 | 292,553 | 2/11/2025 | |
9.0.1 | 235,074 | 1/14/2025 | |
9.0.0 | 326,133 | 11/12/2024 | |
9.0.0-rc.2.24474.3 | 2,481 | 10/8/2024 | |
9.0.0-rc.1.24452.1 | 1,119 | 9/10/2024 | |
9.0.0-preview.7.24406.2 | 387 | 8/13/2024 | |
9.0.0-preview.6.24328.4 | 214 | 7/9/2024 | |
9.0.0-preview.5.24306.11 | 287 | 6/11/2024 | |
9.0.0-preview.4.24267.6 | 201 | 5/21/2024 | |
9.0.0-preview.3.24172.13 | 306 | 4/11/2024 | |
9.0.0-preview.2.24128.4 | 190 | 3/12/2024 | |
9.0.0-preview.1.24081.5 | 225 | 2/13/2024 | |
8.0.15 | 42,795 | 4/8/2025 | |
8.0.14 | 85,147 | 3/11/2025 | |
8.0.13 | 153,181 | 2/11/2025 | |
8.0.12 | 145,277 | 1/14/2025 | |
8.0.11 | 599,144 | 11/12/2024 | |
8.0.10 | 770,575 | 10/8/2024 | |
8.0.8 | 1,036,513 | 8/13/2024 | |
8.0.7 | 590,935 | 7/9/2024 | |
8.0.6 | 1,025,999 | 5/28/2024 | |
8.0.5 | 267,832 | 5/14/2024 | |
8.0.4 | 606,934 | 4/9/2024 | |
8.0.3 | 552,192 | 3/12/2024 | |
8.0.2 | 460,896 | 2/13/2024 | |
8.0.1 | 526,498 | 1/9/2024 | |
8.0.0 | 703,953 | 11/14/2023 | |
8.0.0-rc.2.23480.2 | 9,665 | 10/10/2023 | |
8.0.0-rc.1.23421.29 | 4,099 | 9/12/2023 | |
8.0.0-preview.7.23375.9 | 2,873 | 8/8/2023 | |
8.0.0-preview.6.23329.11 | 819 | 7/11/2023 | |
8.0.0-preview.5.23302.2 | 1,518 | 6/13/2023 | |
8.0.0-preview.4.23260.4 | 642 | 5/16/2023 | |
8.0.0-preview.3.23177.8 | 430 | 4/11/2023 | |
8.0.0-preview.2.23153.2 | 372 | 3/14/2023 | |
8.0.0-preview.1.23112.2 | 816 | 2/21/2023 | |
7.0.20 | 49,727 | 5/28/2024 | |
7.0.19 | 7,362 | 5/14/2024 | |
7.0.18 | 33,598 | 4/9/2024 | |
7.0.17 | 67,736 | 3/12/2024 | |
7.0.16 | 49,089 | 2/13/2024 | |
7.0.15 | 59,924 | 1/9/2024 | |
7.0.14 | 239,972 | 11/14/2023 | |
7.0.13 | 188,962 | 10/24/2023 | |
7.0.12 | 104,409 | 10/10/2023 | |
7.0.11 | 164,130 | 9/12/2023 | |
7.0.10 | 311,224 | 8/8/2023 | |
7.0.9 | 150,013 | 7/11/2023 | |
7.0.8 | 144,533 | 6/22/2023 | |
7.0.7 | 65,532 | 6/13/2023 | |
7.0.5 | 398,229 | 4/11/2023 | |
7.0.4 | 472,735 | 3/14/2023 | |
7.0.3 | 212,280 | 2/14/2023 | |
7.0.2 | 213,912 | 1/10/2023 | |
7.0.1 | 126,065 | 12/13/2022 | |
7.0.0 | 249,263 | 11/7/2022 | |
7.0.0-rc.2.22476.2 | 2,889 | 10/11/2022 | |
7.0.0-rc.1.22427.2 | 1,243 | 9/14/2022 | |
7.0.0-preview.7.22376.6 | 2,334 | 8/9/2022 | |
7.0.0-preview.6.22330.3 | 911 | 7/12/2022 | |
7.0.0-preview.5.22303.8 | 875 | 6/14/2022 | |
7.0.0-preview.4.22251.1 | 730 | 5/10/2022 | |
7.0.0-preview.3.22178.4 | 535 | 4/13/2022 | |
7.0.0-preview.2.22153.2 | 310 | 3/14/2022 | |
7.0.0-preview.1.22109.13 | 352 | 2/17/2022 | |
6.0.36 | 42,727 | 11/12/2024 | |
6.0.35 | 32,009 | 10/8/2024 | |
6.0.33 | 368,933 | 8/13/2024 | |
6.0.32 | 24,322 | 7/9/2024 | |
6.0.31 | 32,935 | 5/28/2024 | |
6.0.30 | 18,562 | 5/14/2024 | |
6.0.29 | 70,426 | 4/9/2024 | |
6.0.28 | 139,567 | 3/12/2024 | |
6.0.27 | 58,127 | 2/13/2024 | |
6.0.26 | 68,384 | 1/9/2024 | |
6.0.25 | 221,285 | 11/14/2023 | |
6.0.24 | 81,513 | 10/24/2023 | |
6.0.23 | 46,172 | 10/10/2023 | |
6.0.22 | 147,890 | 9/12/2023 | |
6.0.21 | 150,661 | 8/8/2023 | |
6.0.20 | 144,772 | 7/11/2023 | |
6.0.19 | 57,447 | 6/22/2023 | |
6.0.18 | 42,564 | 6/13/2023 | |
6.0.16 | 418,427 | 4/11/2023 | |
6.0.15 | 209,159 | 3/14/2023 | |
6.0.14 | 165,887 | 2/14/2023 | |
6.0.13 | 674,817 | 1/10/2023 | |
6.0.12 | 119,962 | 12/13/2022 | |
6.0.11 | 393,678 | 11/7/2022 | |
6.0.10 | 474,299 | 10/11/2022 | |
6.0.9 | 614,207 | 9/13/2022 | |
6.0.8 | 510,519 | 8/9/2022 | |
6.0.7 | 430,270 | 7/12/2022 | |
6.0.6 | 247,686 | 6/14/2022 | |
6.0.5 | 470,404 | 5/10/2022 | |
6.0.4 | 546,141 | 4/11/2022 | |
6.0.3 | 562,830 | 3/8/2022 | |
6.0.2 | 387,386 | 2/8/2022 | |
6.0.1 | 652,348 | 12/14/2021 | |
6.0.0 | 532,361 | 11/8/2021 | |
6.0.0-rc.2.21480.10 | 3,294 | 10/12/2021 | |
6.0.0-rc.1.21452.15 | 2,009 | 9/14/2021 | |
6.0.0-preview.7.21378.6 | 1,997 | 8/10/2021 | |
6.0.0-preview.6.21355.2 | 714 | 7/14/2021 | |
6.0.0-preview.5.21301.17 | 1,166 | 6/15/2021 | |
6.0.0-preview.4.21253.5 | 443 | 5/24/2021 | |
6.0.0-preview.3.21201.13 | 500 | 4/8/2021 | |
6.0.0-preview.2.21154.6 | 445 | 3/11/2021 | |
6.0.0-preview.1.21103.6 | 435 | 2/12/2021 | |
5.0.17 | 228,501 | 5/10/2022 | |
5.0.16 | 12,454 | 4/11/2022 | |
5.0.15 | 123,143 | 3/8/2022 | |
5.0.14 | 21,383 | 2/8/2022 | |
5.0.13 | 43,104 | 12/14/2021 | |
5.0.12 | 74,639 | 11/7/2021 | |
5.0.11 | 288,138 | 10/12/2021 | |
5.0.10 | 204,363 | 9/14/2021 | |
5.0.9 | 131,221 | 8/10/2021 | |
5.0.8 | 202,843 | 7/13/2021 | |
5.0.7 | 279,350 | 6/8/2021 | |
5.0.6 | 116,360 | 5/11/2021 | |
5.0.5 | 229,622 | 4/6/2021 | |
5.0.4 | 102,570 | 3/9/2021 | |
5.0.3 | 135,848 | 2/9/2021 | |
5.0.2 | 89,117 | 1/12/2021 | |
5.0.1 | 160,524 | 12/8/2020 | |
5.0.0 | 93,515 | 11/9/2020 | |
5.0.0-rc.2.20475.17 | 1,038 | 10/13/2020 | |
5.0.0-rc.1.20451.17 | 1,447 | 9/14/2020 | |
5.0.0-preview.8.20414.8 | 486 | 8/25/2020 | |
5.0.0-preview.7.20365.19 | 922 | 7/21/2020 | |
5.0.0-preview.6.20312.15 | 565 | 6/25/2020 | |
5.0.0-preview.5.20279.2 | 586 | 6/10/2020 | |
5.0.0-preview.4.20257.10 | 652 | 5/18/2020 | |
5.0.0-preview.3.20215.14 | 579 | 4/23/2020 | |
5.0.0-preview.2.20167.3 | 548 | 4/2/2020 | |
5.0.0-preview.1.20124.5 | 514 | 3/16/2020 | |
3.1.32 | 79,993 | 12/13/2022 | |
3.1.31 | 13,046 | 11/8/2022 | |
3.1.30 | 4,056 | 10/11/2022 | |
3.1.29 | 6,345 | 9/13/2022 | |
3.1.28 | 11,809 | 8/9/2022 | |
3.1.27 | 13,571 | 7/12/2022 | |
3.1.26 | 13,811 | 6/14/2022 | |
3.1.25 | 17,217 | 5/10/2022 | |
3.1.24 | 17,345 | 4/11/2022 | |
3.1.23 | 14,917 | 3/8/2022 | |
3.1.22 | 59,558 | 12/14/2021 | |
3.1.21 | 58,163 | 11/7/2021 | |
3.1.20 | 28,206 | 10/11/2021 | |
3.1.19 | 17,857 | 9/14/2021 | |
3.1.18 | 92,869 | 8/10/2021 | |
3.1.17 | 41,217 | 7/13/2021 | |
3.1.16 | 30,761 | 6/8/2021 | |
3.1.15 | 20,685 | 5/11/2021 | |
3.1.14 | 49,155 | 4/6/2021 | |
3.1.13 | 33,733 | 3/9/2021 | |
3.1.12 | 35,223 | 2/9/2021 | |
3.1.11 | 76,497 | 1/12/2021 | |
3.1.10 | 189,173 | 11/9/2020 | |
3.1.9 | 436,965 | 10/13/2020 | |
3.1.8 | 615,795 | 9/8/2020 | |
3.1.7 | 185,034 | 8/11/2020 | |
3.1.6 | 230,340 | 7/14/2020 | |
3.1.5 | 138,419 | 6/9/2020 | |
3.1.4 | 133,317 | 5/12/2020 | |
3.1.3 | 294,088 | 3/24/2020 | |
3.1.2 | 135,740 | 2/18/2020 | |
3.1.1 | 172,841 | 1/14/2020 | |
3.1.0 | 382,482 | 12/3/2019 | |
3.1.0-preview3.19555.2 | 503 | 11/13/2019 | |
3.1.0-preview2.19528.8 | 461 | 11/1/2019 | |
3.1.0-preview1.19508.20 | 515 | 10/15/2019 | |
3.0.3 | 2,580 | 2/18/2020 | |
3.0.2 | 1,645 | 1/14/2020 | |
3.0.0 | 40,557 | 9/23/2019 | |
3.0.0-rc1.19457.4 | 503 | 9/16/2019 | |
3.0.0-preview9.19424.4 | 725 | 9/4/2019 | |
3.0.0-preview8.19405.7 | 561 | 8/13/2019 | |
3.0.0-preview7.19365.7 | 510 | 7/23/2019 | |
3.0.0-preview6.19307.2 | 530 | 6/12/2019 | |
3.0.0-preview5-19227-01 | 783 | 5/6/2019 | |
3.0.0-preview4-19216-03 | 520 | 4/18/2019 | |
3.0.0-preview3-19153-02 | 509 | 3/6/2019 | |
3.0.0-preview-19075-0444 | 633 | 1/29/2019 | |
3.0.0-preview-18579-0056 | 615 | 12/3/2018 | |
2.2.8 | 327,659 | 11/18/2019 | |
2.2.0 | 692,584 | 12/3/2018 | |
2.2.0-preview3-35497 | 1,286 | 10/17/2018 | |
2.2.0-preview2-35157 | 1,533 | 9/12/2018 |