Microsoft.AspNetCore.DataProtection.EntityFrameworkCore 11.0.0-preview.1.26104.118

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 11.0

Version Downloads Last updated
11.0.0-preview.1.26104.118 2 02/11/2026
10.0.3 1 02/11/2026
10.0.2 7 01/13/2026
10.0.1 17 12/10/2025
10.0.0 44 11/12/2025
10.0.0-rc.2.25502.107 54 10/15/2025
10.0.0-rc.1.25451.107 53 09/09/2025
10.0.0-preview.7.25380.108 59 08/12/2025
10.0.0-preview.6.25358.103 66 07/15/2025
10.0.0-preview.5.25277.114 64 06/07/2025
10.0.0-preview.4.25258.110 78 05/15/2025
10.0.0-preview.3.25172.1 79 04/11/2025
10.0.0-preview.2.25164.1 80 04/01/2025
10.0.0-preview.1.25120.3 72 04/01/2025
9.0.13 1 02/11/2026
9.0.12 6 01/13/2026
9.0.11 34 11/12/2025
9.0.10 39 10/15/2025
9.0.9 55 09/09/2025
9.0.8 53 08/05/2025
9.0.7 72 07/09/2025
9.0.6 73 06/12/2025
9.0.5 83 05/17/2025
9.0.4 68 04/09/2025
9.0.3 93 03/15/2025
9.0.2 81 02/16/2025
9.0.1 73 04/02/2025
9.0.0 68 11/14/2024
9.0.0-rc.2.24474.3 81 10/15/2024
9.0.0-rc.1.24452.1 93 09/20/2024
9.0.0-preview.7.24406.2 71 08/28/2024
9.0.0-preview.6.24328.4 112 07/21/2024
9.0.0-preview.5.24306.11 101 07/21/2024
9.0.0-preview.4.24267.6 101 07/21/2024
9.0.0-preview.3.24172.13 103 07/21/2024
9.0.0-preview.2.24128.4 91 07/21/2024
9.0.0-preview.1.24081.5 98 07/21/2024
8.0.24 1 02/11/2026
8.0.23 7 01/13/2026
8.0.22 33 11/12/2025
8.0.21 49 10/15/2025
8.0.20 56 09/09/2025
8.0.19 50 08/05/2025
8.0.18 69 07/09/2025
8.0.17 59 06/12/2025
8.0.16 88 05/16/2025
8.0.15 77 04/10/2025
8.0.14 76 03/29/2025
8.0.13 84 03/29/2025
8.0.12 71 03/29/2025
8.0.11 85 11/14/2024
8.0.10 79 10/15/2024
8.0.8 107 08/30/2024
8.0.7 105 07/21/2024
8.0.6 142 06/27/2024
8.0.5 102 07/21/2024
8.0.4 109 07/21/2024
8.0.3 105 07/21/2024
8.0.2 100 07/21/2024
8.0.1 129 02/05/2024
8.0.0 102 07/21/2024
8.0.0-rc.2.23480.2 91 07/21/2024
8.0.0-rc.1.23421.29 103 07/21/2024
8.0.0-preview.7.23375.9 101 07/21/2024
8.0.0-preview.6.23329.11 100 07/21/2024
8.0.0-preview.5.23302.2 99 07/21/2024
8.0.0-preview.4.23260.4 98 07/21/2024
8.0.0-preview.3.23177.8 95 07/21/2024
8.0.0-preview.2.23153.2 98 07/21/2024
8.0.0-preview.1.23112.2 95 07/21/2024
7.0.20 101 07/21/2024
7.0.19 100 07/21/2024
7.0.18 99 07/21/2024
7.0.17 101 07/21/2024
7.0.16 102 07/21/2024
7.0.15 104 07/21/2024
7.0.14 103 07/21/2024
7.0.13 102 07/21/2024
7.0.12 112 07/21/2024
7.0.11 98 07/21/2024
7.0.10 108 07/21/2024
7.0.9 110 07/21/2024
7.0.8 88 07/21/2024
7.0.7 94 07/21/2024
7.0.5 107 07/21/2024
7.0.4 108 07/21/2024
7.0.3 108 07/21/2024
7.0.2 108 07/21/2024
7.0.1 95 07/21/2024
7.0.0 103 07/21/2024
7.0.0-rc.2.22476.2 106 07/21/2024
7.0.0-rc.1.22427.2 102 07/21/2024
7.0.0-preview.7.22376.6 89 07/21/2024
7.0.0-preview.6.22330.3 99 07/21/2024
7.0.0-preview.5.22303.8 112 07/21/2024
7.0.0-preview.4.22251.1 119 07/21/2024
7.0.0-preview.3.22178.4 100 07/21/2024
7.0.0-preview.2.22153.2 98 07/21/2024
7.0.0-preview.1.22109.13 108 07/21/2024
6.0.36 72 11/14/2024
6.0.35 72 10/16/2024
6.0.33 89 08/30/2024
6.0.32 116 07/21/2024
6.0.31 103 07/21/2024
6.0.30 112 07/21/2024
6.0.29 107 07/21/2024
6.0.28 94 07/21/2024
6.0.27 99 07/21/2024
6.0.26 113 07/21/2024
6.0.25 115 07/21/2024
6.0.24 113 07/21/2024
6.0.23 115 07/21/2024
6.0.22 100 07/21/2024
6.0.21 109 07/21/2024
6.0.20 107 07/21/2024
6.0.19 115 07/21/2024
6.0.18 91 07/21/2024
6.0.16 97 07/21/2024
6.0.15 115 07/21/2024
6.0.14 111 07/21/2024
6.0.13 105 07/21/2024
6.0.12 90 07/21/2024
6.0.11 105 07/21/2024
6.0.10 79 07/21/2024
6.0.9 120 07/21/2024
6.0.8 108 07/21/2024
6.0.7 103 07/21/2024
6.0.6 101 07/21/2024
6.0.5 100 07/21/2024
6.0.4 120 07/21/2024
6.0.3 105 07/21/2024
6.0.2 113 07/21/2024
6.0.1 100 07/21/2024
6.0.0 81 07/21/2024
6.0.0-rc.2.21480.10 89 07/21/2024
6.0.0-rc.1.21452.15 103 07/21/2024
6.0.0-preview.7.21378.6 104 07/21/2024
6.0.0-preview.6.21355.2 97 07/21/2024
6.0.0-preview.5.21301.17 98 07/21/2024
6.0.0-preview.4.21253.5 85 07/21/2024
6.0.0-preview.3.21201.13 93 07/21/2024
6.0.0-preview.2.21154.6 96 07/21/2024
6.0.0-preview.1.21103.6 95 07/21/2024
5.0.17 89 07/21/2024
5.0.16 95 07/21/2024
5.0.15 101 07/21/2024
5.0.14 103 07/21/2024
5.0.13 115 07/21/2024
5.0.12 103 07/21/2024
5.0.11 102 07/21/2024
5.0.10 101 07/21/2024
5.0.9 102 07/21/2024
5.0.8 106 07/21/2024
5.0.7 104 07/21/2024
5.0.6 105 07/21/2024
5.0.5 115 07/21/2024
5.0.4 105 07/21/2024
5.0.3 93 07/21/2024
5.0.2 104 07/21/2024
5.0.1 104 07/21/2024
5.0.0 107 07/21/2024
5.0.0-rc.2.20475.17 108 07/21/2024
5.0.0-rc.1.20451.17 100 07/21/2024
5.0.0-preview.8.20414.8 100 07/21/2024
5.0.0-preview.7.20365.19 99 07/21/2024
5.0.0-preview.6.20312.15 104 07/21/2024
5.0.0-preview.5.20279.2 107 07/21/2024
5.0.0-preview.4.20257.10 94 07/21/2024
5.0.0-preview.3.20215.14 100 07/21/2024
5.0.0-preview.2.20167.3 87 07/21/2024
5.0.0-preview.1.20124.5 99 07/21/2024
3.1.32 98 07/21/2024
3.1.31 116 07/21/2024
3.1.30 106 07/21/2024
3.1.29 105 07/21/2024
3.1.28 97 07/21/2024
3.1.27 102 07/21/2024
3.1.26 102 07/21/2024
3.1.25 100 07/21/2024
3.1.24 111 07/21/2024
3.1.23 93 07/21/2024
3.1.22 108 07/21/2024
3.1.21 94 07/21/2024
3.1.20 109 07/21/2024
3.1.19 110 07/21/2024
3.1.18 85 07/21/2024
3.1.17 103 07/21/2024
3.1.16 116 07/21/2024
3.1.15 102 07/21/2024
3.1.14 105 07/21/2024
3.1.13 113 07/21/2024
3.1.12 103 07/21/2024
3.1.11 114 07/21/2024
3.1.10 105 07/21/2024
3.1.9 101 07/21/2024
3.1.8 115 07/21/2024
3.1.7 101 07/21/2024
3.1.6 100 07/21/2024
3.1.5 104 07/21/2024
3.1.4 116 07/21/2024
3.1.3 100 07/21/2024
3.1.2 101 07/21/2024
3.1.1 101 07/21/2024
3.1.0 96 07/21/2024
3.1.0-preview3.19555.2 102 07/21/2024
3.1.0-preview2.19528.8 101 07/21/2024
3.1.0-preview1.19508.20 114 07/21/2024
3.0.3 103 07/21/2024
3.0.2 92 07/21/2024
3.0.0 110 07/21/2024
3.0.0-rc1.19457.4 97 07/21/2024
3.0.0-preview9.19424.4 101 07/21/2024
3.0.0-preview8.19405.7 109 07/21/2024
3.0.0-preview7.19365.7 110 07/21/2024
3.0.0-preview6.19307.2 98 07/21/2024
3.0.0-preview5-19227-01 105 07/21/2024
3.0.0-preview4-19216-03 100 07/21/2024
3.0.0-preview3-19153-02 117 07/21/2024
3.0.0-preview-19075-0444 104 07/21/2024
3.0.0-preview-18579-0056 100 07/21/2024
2.2.8 90 07/21/2024
2.2.0 104 07/21/2024
2.2.0-preview3-35497 111 07/21/2024
2.2.0-preview2-35157 105 07/21/2024