Microsoft.AspNetCore.DataProtection.EntityFrameworkCore 10.0.0-rc.2.25502.107

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

Version Downloads Last updated
10.0.0-rc.2.25502.107 12 10/15/2025
10.0.0-rc.1.25451.107 15 09/09/2025
10.0.0-preview.7.25380.108 25 08/12/2025
10.0.0-preview.6.25358.103 28 07/15/2025
10.0.0-preview.5.25277.114 29 06/07/2025
10.0.0-preview.4.25258.110 32 05/15/2025
10.0.0-preview.3.25172.1 36 04/11/2025
10.0.0-preview.2.25164.1 39 04/01/2025
10.0.0-preview.1.25120.3 36 04/01/2025
9.0.10 7 10/15/2025
9.0.9 18 09/09/2025
9.0.8 19 08/05/2025
9.0.7 26 07/09/2025
9.0.6 24 06/12/2025
9.0.5 32 05/17/2025
9.0.4 38 04/09/2025
9.0.3 61 03/15/2025
9.0.2 45 02/16/2025
9.0.1 33 04/02/2025
9.0.0 37 11/14/2024
9.0.0-rc.2.24474.3 42 10/15/2024
9.0.0-rc.1.24452.1 38 09/20/2024
9.0.0-preview.7.24406.2 41 08/28/2024
9.0.0-preview.6.24328.4 63 07/21/2024
9.0.0-preview.5.24306.11 65 07/21/2024
9.0.0-preview.4.24267.6 62 07/21/2024
9.0.0-preview.3.24172.13 67 07/21/2024
9.0.0-preview.2.24128.4 48 07/21/2024
9.0.0-preview.1.24081.5 63 07/21/2024
8.0.21 8 10/15/2025
8.0.20 15 09/09/2025
8.0.19 20 08/05/2025
8.0.18 28 07/09/2025
8.0.17 28 06/12/2025
8.0.16 37 05/16/2025
8.0.15 35 04/10/2025
8.0.14 45 03/29/2025
8.0.13 36 03/29/2025
8.0.12 37 03/29/2025
8.0.11 40 11/14/2024
8.0.10 43 10/15/2024
8.0.8 70 08/30/2024
8.0.7 72 07/21/2024
8.0.6 99 06/27/2024
8.0.5 65 07/21/2024
8.0.4 67 07/21/2024
8.0.3 68 07/21/2024
8.0.2 59 07/21/2024
8.0.1 80 02/05/2024
8.0.0 65 07/21/2024
8.0.0-rc.2.23480.2 57 07/21/2024
8.0.0-rc.1.23421.29 61 07/21/2024
8.0.0-preview.7.23375.9 58 07/21/2024
8.0.0-preview.6.23329.11 64 07/21/2024
8.0.0-preview.5.23302.2 57 07/21/2024
8.0.0-preview.4.23260.4 63 07/21/2024
8.0.0-preview.3.23177.8 62 07/21/2024
8.0.0-preview.2.23153.2 57 07/21/2024
8.0.0-preview.1.23112.2 58 07/21/2024
7.0.20 65 07/21/2024
7.0.19 62 07/21/2024
7.0.18 65 07/21/2024
7.0.17 66 07/21/2024
7.0.16 68 07/21/2024
7.0.15 68 07/21/2024
7.0.14 56 07/21/2024
7.0.13 69 07/21/2024
7.0.12 60 07/21/2024
7.0.11 56 07/21/2024
7.0.10 71 07/21/2024
7.0.9 67 07/21/2024
7.0.8 58 07/21/2024
7.0.7 53 07/21/2024
7.0.5 64 07/21/2024
7.0.4 63 07/21/2024
7.0.3 62 07/21/2024
7.0.2 64 07/21/2024
7.0.1 53 07/21/2024
7.0.0 65 07/21/2024
7.0.0-rc.2.22476.2 68 07/21/2024
7.0.0-rc.1.22427.2 67 07/21/2024
7.0.0-preview.7.22376.6 53 07/21/2024
7.0.0-preview.6.22330.3 60 07/21/2024
7.0.0-preview.5.22303.8 69 07/21/2024
7.0.0-preview.4.22251.1 78 07/21/2024
7.0.0-preview.3.22178.4 59 07/21/2024
7.0.0-preview.2.22153.2 62 07/21/2024
7.0.0-preview.1.22109.13 71 07/21/2024
6.0.36 40 11/14/2024
6.0.35 36 10/16/2024
6.0.33 50 08/30/2024
6.0.32 78 07/21/2024
6.0.31 66 07/21/2024
6.0.30 63 07/21/2024
6.0.29 66 07/21/2024
6.0.28 57 07/21/2024
6.0.27 60 07/21/2024
6.0.26 64 07/21/2024
6.0.25 70 07/21/2024
6.0.24 72 07/21/2024
6.0.23 68 07/21/2024
6.0.22 65 07/21/2024
6.0.21 76 07/21/2024
6.0.20 71 07/21/2024
6.0.19 71 07/21/2024
6.0.18 55 07/21/2024
6.0.16 59 07/21/2024
6.0.15 62 07/21/2024
6.0.14 65 07/21/2024
6.0.13 58 07/21/2024
6.0.12 54 07/21/2024
6.0.11 74 07/21/2024
6.0.10 51 07/21/2024
6.0.9 72 07/21/2024
6.0.8 63 07/21/2024
6.0.7 60 07/21/2024
6.0.6 62 07/21/2024
6.0.5 57 07/21/2024
6.0.4 71 07/21/2024
6.0.3 68 07/21/2024
6.0.2 68 07/21/2024
6.0.1 63 07/21/2024
6.0.0 52 07/21/2024
6.0.0-rc.2.21480.10 50 07/21/2024
6.0.0-rc.1.21452.15 67 07/21/2024
6.0.0-preview.7.21378.6 66 07/21/2024
6.0.0-preview.6.21355.2 56 07/21/2024
6.0.0-preview.5.21301.17 57 07/21/2024
6.0.0-preview.4.21253.5 52 07/21/2024
6.0.0-preview.3.21201.13 66 07/21/2024
6.0.0-preview.2.21154.6 61 07/21/2024
6.0.0-preview.1.21103.6 55 07/21/2024
5.0.17 57 07/21/2024
5.0.16 60 07/21/2024
5.0.15 65 07/21/2024
5.0.14 65 07/21/2024
5.0.13 71 07/21/2024
5.0.12 58 07/21/2024
5.0.11 62 07/21/2024
5.0.10 61 07/21/2024
5.0.9 57 07/21/2024
5.0.8 70 07/21/2024
5.0.7 67 07/21/2024
5.0.6 64 07/21/2024
5.0.5 78 07/21/2024
5.0.4 66 07/21/2024
5.0.3 55 07/21/2024
5.0.2 64 07/21/2024
5.0.1 72 07/21/2024
5.0.0 68 07/21/2024
5.0.0-rc.2.20475.17 63 07/21/2024
5.0.0-rc.1.20451.17 62 07/21/2024
5.0.0-preview.8.20414.8 55 07/21/2024
5.0.0-preview.7.20365.19 66 07/21/2024
5.0.0-preview.6.20312.15 69 07/21/2024
5.0.0-preview.5.20279.2 65 07/21/2024
5.0.0-preview.4.20257.10 53 07/21/2024
5.0.0-preview.3.20215.14 55 07/21/2024
5.0.0-preview.2.20167.3 55 07/21/2024
5.0.0-preview.1.20124.5 63 07/21/2024
3.1.32 61 07/21/2024
3.1.31 77 07/21/2024
3.1.30 69 07/21/2024
3.1.29 62 07/21/2024
3.1.28 63 07/21/2024
3.1.27 65 07/21/2024
3.1.26 71 07/21/2024
3.1.25 64 07/21/2024
3.1.24 63 07/21/2024
3.1.23 56 07/21/2024
3.1.22 66 07/21/2024
3.1.21 64 07/21/2024
3.1.20 72 07/21/2024
3.1.19 59 07/21/2024
3.1.18 47 07/21/2024
3.1.17 58 07/21/2024
3.1.16 78 07/21/2024
3.1.15 57 07/21/2024
3.1.14 64 07/21/2024
3.1.13 61 07/21/2024
3.1.12 59 07/21/2024
3.1.11 70 07/21/2024
3.1.10 65 07/21/2024
3.1.9 57 07/21/2024
3.1.8 66 07/21/2024
3.1.7 70 07/21/2024
3.1.6 56 07/21/2024
3.1.5 67 07/21/2024
3.1.4 66 07/21/2024
3.1.3 64 07/21/2024
3.1.2 58 07/21/2024
3.1.1 68 07/21/2024
3.1.0 59 07/21/2024
3.1.0-preview3.19555.2 63 07/21/2024
3.1.0-preview2.19528.8 52 07/21/2024
3.1.0-preview1.19508.20 68 07/21/2024
3.0.3 57 07/21/2024
3.0.2 61 07/21/2024
3.0.0 68 07/21/2024
3.0.0-rc1.19457.4 61 07/21/2024
3.0.0-preview9.19424.4 62 07/21/2024
3.0.0-preview8.19405.7 69 07/21/2024
3.0.0-preview7.19365.7 66 07/21/2024
3.0.0-preview6.19307.2 52 07/21/2024
3.0.0-preview5-19227-01 66 07/21/2024
3.0.0-preview4-19216-03 59 07/21/2024
3.0.0-preview3-19153-02 68 07/21/2024
3.0.0-preview-19075-0444 67 07/21/2024
3.0.0-preview-18579-0056 62 07/21/2024
2.2.8 54 07/21/2024
2.2.0 66 07/21/2024
2.2.0-preview3-35497 63 07/21/2024
2.2.0-preview2-35157 60 07/21/2024