Microsoft.AspNetCore.DataProtection.EntityFrameworkCore 10.0.8

Prefix Reserved
There is a newer prerelease version of this package available.
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
                    
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.8" />
                    
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.8" />
                    
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.8
                    
#r "nuget: Microsoft.AspNetCore.DataProtection.EntityFrameworkCore, 10.0.8"
                    
#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.8
                    
#: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.8
                    
Install as a Cake Addin
#tool nuget:?package=Microsoft.AspNetCore.DataProtection.EntityFrameworkCore&version=10.0.8
                    
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 (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
Loading failed