Microsoft.AspNetCore.DataProtection.EntityFrameworkCore 10.0.0-preview.3.25172.1
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.
No packages depend on Microsoft.AspNetCore.DataProtection.EntityFrameworkCore.
.NET 10.0
- Microsoft.AspNetCore.DataProtection (>= 10.0.0-preview.3.25172.1)
- Microsoft.EntityFrameworkCore (>= 10.0.0-preview.3.25171.6)
Version | Downloads | Last updated |
---|---|---|
10.0.0-preview.3.25172.1 | 1 | 04/11/2025 |
10.0.0-preview.2.25164.1 | 4 | 04/01/2025 |
10.0.0-preview.1.25120.3 | 4 | 04/01/2025 |
9.0.4 | 2 | 04/09/2025 |
9.0.3 | 10 | 03/15/2025 |
9.0.2 | 11 | 02/16/2025 |
9.0.1 | 4 | 04/02/2025 |
9.0.0 | 11 | 11/14/2024 |
9.0.0-rc.2.24474.3 | 10 | 10/15/2024 |
9.0.0-rc.1.24452.1 | 12 | 09/20/2024 |
9.0.0-preview.7.24406.2 | 11 | 08/28/2024 |
9.0.0-preview.6.24328.4 | 33 | 07/21/2024 |
9.0.0-preview.5.24306.11 | 36 | 07/21/2024 |
9.0.0-preview.4.24267.6 | 35 | 07/21/2024 |
9.0.0-preview.3.24172.13 | 37 | 07/21/2024 |
9.0.0-preview.2.24128.4 | 21 | 07/21/2024 |
9.0.0-preview.1.24081.5 | 40 | 07/21/2024 |
8.0.15 | 1 | 04/10/2025 |
8.0.14 | 7 | 03/29/2025 |
8.0.13 | 4 | 03/29/2025 |
8.0.12 | 4 | 03/29/2025 |
8.0.11 | 13 | 11/14/2024 |
8.0.10 | 10 | 10/15/2024 |
8.0.8 | 41 | 08/30/2024 |
8.0.7 | 44 | 07/21/2024 |
8.0.6 | 69 | 06/27/2024 |
8.0.5 | 35 | 07/21/2024 |
8.0.4 | 39 | 07/21/2024 |
8.0.3 | 39 | 07/21/2024 |
8.0.2 | 35 | 07/21/2024 |
8.0.1 | 53 | 02/05/2024 |
8.0.0 | 35 | 07/21/2024 |
8.0.0-rc.2.23480.2 | 32 | 07/21/2024 |
8.0.0-rc.1.23421.29 | 30 | 07/21/2024 |
8.0.0-preview.7.23375.9 | 30 | 07/21/2024 |
8.0.0-preview.6.23329.11 | 36 | 07/21/2024 |
8.0.0-preview.5.23302.2 | 25 | 07/21/2024 |
8.0.0-preview.4.23260.4 | 35 | 07/21/2024 |
8.0.0-preview.3.23177.8 | 34 | 07/21/2024 |
8.0.0-preview.2.23153.2 | 31 | 07/21/2024 |
8.0.0-preview.1.23112.2 | 29 | 07/21/2024 |
7.0.20 | 33 | 07/21/2024 |
7.0.19 | 32 | 07/21/2024 |
7.0.18 | 38 | 07/21/2024 |
7.0.17 | 38 | 07/21/2024 |
7.0.16 | 38 | 07/21/2024 |
7.0.15 | 37 | 07/21/2024 |
7.0.14 | 25 | 07/21/2024 |
7.0.13 | 36 | 07/21/2024 |
7.0.12 | 29 | 07/21/2024 |
7.0.11 | 32 | 07/21/2024 |
7.0.10 | 39 | 07/21/2024 |
7.0.9 | 36 | 07/21/2024 |
7.0.8 | 28 | 07/21/2024 |
7.0.7 | 26 | 07/21/2024 |
7.0.5 | 38 | 07/21/2024 |
7.0.4 | 39 | 07/21/2024 |
7.0.3 | 34 | 07/21/2024 |
7.0.2 | 32 | 07/21/2024 |
7.0.1 | 26 | 07/21/2024 |
7.0.0 | 36 | 07/21/2024 |
7.0.0-rc.2.22476.2 | 42 | 07/21/2024 |
7.0.0-rc.1.22427.2 | 34 | 07/21/2024 |
7.0.0-preview.7.22376.6 | 28 | 07/21/2024 |
7.0.0-preview.6.22330.3 | 33 | 07/21/2024 |
7.0.0-preview.5.22303.8 | 38 | 07/21/2024 |
7.0.0-preview.4.22251.1 | 48 | 07/21/2024 |
7.0.0-preview.3.22178.4 | 29 | 07/21/2024 |
7.0.0-preview.2.22153.2 | 35 | 07/21/2024 |
7.0.0-preview.1.22109.13 | 44 | 07/21/2024 |
6.0.36 | 9 | 11/14/2024 |
6.0.35 | 9 | 10/16/2024 |
6.0.33 | 24 | 08/30/2024 |
6.0.32 | 47 | 07/21/2024 |
6.0.31 | 38 | 07/21/2024 |
6.0.30 | 30 | 07/21/2024 |
6.0.29 | 34 | 07/21/2024 |
6.0.28 | 31 | 07/21/2024 |
6.0.27 | 26 | 07/21/2024 |
6.0.26 | 35 | 07/21/2024 |
6.0.25 | 35 | 07/21/2024 |
6.0.24 | 42 | 07/21/2024 |
6.0.23 | 38 | 07/21/2024 |
6.0.22 | 38 | 07/21/2024 |
6.0.21 | 42 | 07/21/2024 |
6.0.20 | 44 | 07/21/2024 |
6.0.19 | 42 | 07/21/2024 |
6.0.18 | 30 | 07/21/2024 |
6.0.16 | 32 | 07/21/2024 |
6.0.15 | 32 | 07/21/2024 |
6.0.14 | 39 | 07/21/2024 |
6.0.13 | 34 | 07/21/2024 |
6.0.12 | 32 | 07/21/2024 |
6.0.11 | 42 | 07/21/2024 |
6.0.10 | 28 | 07/21/2024 |
6.0.9 | 37 | 07/21/2024 |
6.0.8 | 37 | 07/21/2024 |
6.0.7 | 34 | 07/21/2024 |
6.0.6 | 36 | 07/21/2024 |
6.0.5 | 26 | 07/21/2024 |
6.0.4 | 36 | 07/21/2024 |
6.0.3 | 37 | 07/21/2024 |
6.0.2 | 38 | 07/21/2024 |
6.0.1 | 36 | 07/21/2024 |
6.0.0 | 28 | 07/21/2024 |
6.0.0-rc.2.21480.10 | 26 | 07/21/2024 |
6.0.0-rc.1.21452.15 | 36 | 07/21/2024 |
6.0.0-preview.7.21378.6 | 39 | 07/21/2024 |
6.0.0-preview.6.21355.2 | 29 | 07/21/2024 |
6.0.0-preview.5.21301.17 | 33 | 07/21/2024 |
6.0.0-preview.4.21253.5 | 29 | 07/21/2024 |
6.0.0-preview.3.21201.13 | 36 | 07/21/2024 |
6.0.0-preview.2.21154.6 | 34 | 07/21/2024 |
6.0.0-preview.1.21103.6 | 32 | 07/21/2024 |
5.0.17 | 31 | 07/21/2024 |
5.0.16 | 34 | 07/21/2024 |
5.0.15 | 37 | 07/21/2024 |
5.0.14 | 35 | 07/21/2024 |
5.0.13 | 39 | 07/21/2024 |
5.0.12 | 33 | 07/21/2024 |
5.0.11 | 29 | 07/21/2024 |
5.0.10 | 34 | 07/21/2024 |
5.0.9 | 32 | 07/21/2024 |
5.0.8 | 42 | 07/21/2024 |
5.0.7 | 39 | 07/21/2024 |
5.0.6 | 34 | 07/21/2024 |
5.0.5 | 45 | 07/21/2024 |
5.0.4 | 35 | 07/21/2024 |
5.0.3 | 25 | 07/21/2024 |
5.0.2 | 34 | 07/21/2024 |
5.0.1 | 45 | 07/21/2024 |
5.0.0 | 38 | 07/21/2024 |
5.0.0-rc.2.20475.17 | 31 | 07/21/2024 |
5.0.0-rc.1.20451.17 | 36 | 07/21/2024 |
5.0.0-preview.8.20414.8 | 31 | 07/21/2024 |
5.0.0-preview.7.20365.19 | 41 | 07/21/2024 |
5.0.0-preview.6.20312.15 | 36 | 07/21/2024 |
5.0.0-preview.5.20279.2 | 42 | 07/21/2024 |
5.0.0-preview.4.20257.10 | 25 | 07/21/2024 |
5.0.0-preview.3.20215.14 | 29 | 07/21/2024 |
5.0.0-preview.2.20167.3 | 25 | 07/21/2024 |
5.0.0-preview.1.20124.5 | 33 | 07/21/2024 |
3.1.32 | 34 | 07/21/2024 |
3.1.31 | 44 | 07/21/2024 |
3.1.30 | 39 | 07/21/2024 |
3.1.29 | 34 | 07/21/2024 |
3.1.28 | 34 | 07/21/2024 |
3.1.27 | 34 | 07/21/2024 |
3.1.26 | 44 | 07/21/2024 |
3.1.25 | 37 | 07/21/2024 |
3.1.24 | 39 | 07/21/2024 |
3.1.23 | 31 | 07/21/2024 |
3.1.22 | 42 | 07/21/2024 |
3.1.21 | 33 | 07/21/2024 |
3.1.20 | 40 | 07/21/2024 |
3.1.19 | 31 | 07/21/2024 |
3.1.18 | 21 | 07/21/2024 |
3.1.17 | 30 | 07/21/2024 |
3.1.16 | 50 | 07/21/2024 |
3.1.15 | 32 | 07/21/2024 |
3.1.14 | 39 | 07/21/2024 |
3.1.13 | 36 | 07/21/2024 |
3.1.12 | 30 | 07/21/2024 |
3.1.11 | 39 | 07/21/2024 |
3.1.10 | 30 | 07/21/2024 |
3.1.9 | 29 | 07/21/2024 |
3.1.8 | 32 | 07/21/2024 |
3.1.7 | 41 | 07/21/2024 |
3.1.6 | 33 | 07/21/2024 |
3.1.5 | 34 | 07/21/2024 |
3.1.4 | 40 | 07/21/2024 |
3.1.3 | 31 | 07/21/2024 |
3.1.2 | 29 | 07/21/2024 |
3.1.1 | 38 | 07/21/2024 |
3.1.0 | 33 | 07/21/2024 |
3.1.0-preview3.19555.2 | 36 | 07/21/2024 |
3.1.0-preview2.19528.8 | 24 | 07/21/2024 |
3.1.0-preview1.19508.20 | 36 | 07/21/2024 |
3.0.3 | 26 | 07/21/2024 |
3.0.2 | 32 | 07/21/2024 |
3.0.0 | 35 | 07/21/2024 |
3.0.0-rc1.19457.4 | 31 | 07/21/2024 |
3.0.0-preview9.19424.4 | 34 | 07/21/2024 |
3.0.0-preview8.19405.7 | 43 | 07/21/2024 |
3.0.0-preview7.19365.7 | 38 | 07/21/2024 |
3.0.0-preview6.19307.2 | 24 | 07/21/2024 |
3.0.0-preview5-19227-01 | 37 | 07/21/2024 |
3.0.0-preview4-19216-03 | 30 | 07/21/2024 |
3.0.0-preview3-19153-02 | 38 | 07/21/2024 |
3.0.0-preview-19075-0444 | 39 | 07/21/2024 |
3.0.0-preview-18579-0056 | 37 | 07/21/2024 |
2.2.8 | 29 | 07/21/2024 |
2.2.0 | 38 | 07/21/2024 |
2.2.0-preview3-35497 | 36 | 07/21/2024 |
2.2.0-preview2-35157 | 38 | 07/21/2024 |