Microsoft.AspNetCore.DataProtection.EntityFrameworkCore 11.0.0-rc.1.26425.128

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-rc.1.26425.128 11 09/09/2026
11.0.0-preview.7.26381.103 16 08/13/2026
11.0.0-preview.6.26359.118 21 07/15/2026
11.0.0-preview.5.26302.115 24 06/09/2026
11.0.0-preview.4.26230.115 25 05/13/2026
11.0.0-preview.3.26207.106 38 04/14/2026
11.0.0-preview.2.26159.112 49 03/11/2026
11.0.0-preview.1.26104.118 58 02/11/2026
10.0.12 12 09/09/2026
10.0.11 12 08/14/2026
10.0.10 21 07/15/2026
10.0.9 25 06/09/2026
10.0.8 26 05/13/2026
10.0.7 38 04/21/2026
10.0.6 38 04/14/2026
10.0.5 43 03/13/2026
10.0.4 48 03/11/2026
10.0.3 50 02/11/2026
10.0.2 56 01/13/2026
10.0.1 63 12/10/2025
10.0.0 104 11/12/2025
10.0.0-rc.2.25502.107 93 10/15/2025
10.0.0-rc.1.25451.107 93 09/09/2025
10.0.0-preview.7.25380.108 104 08/12/2025
10.0.0-preview.6.25358.103 101 07/15/2025
10.0.0-preview.5.25277.114 93 06/07/2025
10.0.0-preview.4.25258.110 123 05/15/2025
10.0.0-preview.3.25172.1 127 04/11/2025
10.0.0-preview.2.25164.1 124 04/01/2025
10.0.0-preview.1.25120.3 117 04/01/2025
9.0.20 7 09/10/2026
9.0.19 17 08/14/2026
9.0.18 19 07/15/2026
9.0.17 23 06/09/2026
9.0.16 28 05/13/2026
9.0.15 40 04/14/2026
9.0.14 50 03/11/2026
9.0.13 48 02/11/2026
9.0.12 54 01/13/2026
9.0.11 79 11/12/2025
9.0.10 86 10/15/2025
9.0.9 101 09/09/2025
9.0.8 97 08/05/2025
9.0.7 115 07/09/2025
9.0.6 119 06/12/2025
9.0.5 125 05/17/2025
9.0.4 114 04/09/2025
9.0.3 137 03/15/2025
9.0.2 117 02/16/2025
9.0.1 114 04/02/2025
9.0.0 111 11/14/2024
9.0.0-rc.2.24474.3 115 10/15/2024
9.0.0-rc.1.24452.1 140 09/20/2024
9.0.0-preview.7.24406.2 121 08/28/2024
9.0.0-preview.6.24328.4 152 07/21/2024
9.0.0-preview.5.24306.11 149 07/21/2024
9.0.0-preview.4.24267.6 148 07/21/2024
9.0.0-preview.3.24172.13 159 07/21/2024
9.0.0-preview.2.24128.4 138 07/21/2024
9.0.0-preview.1.24081.5 149 07/21/2024
8.0.31 10 09/09/2026
8.0.30 19 08/14/2026
8.0.29 15 07/15/2026
8.0.28 28 06/09/2026
8.0.27 26 05/13/2026
8.0.26 39 04/14/2026
8.0.25 45 03/11/2026
8.0.24 53 02/11/2026
8.0.23 50 01/13/2026
8.0.22 82 11/12/2025
8.0.21 86 10/15/2025
8.0.20 96 09/09/2025
8.0.19 100 08/05/2025
8.0.18 115 07/09/2025
8.0.17 103 06/12/2025
8.0.16 133 05/16/2025
8.0.15 123 04/10/2025
8.0.14 128 03/29/2025
8.0.13 131 03/29/2025
8.0.12 118 03/29/2025
8.0.11 135 11/14/2024
8.0.10 116 10/15/2024
8.0.8 152 08/30/2024
8.0.7 148 07/21/2024
8.0.6 188 06/27/2024
8.0.5 146 07/21/2024
8.0.4 156 07/21/2024
8.0.3 146 07/21/2024
8.0.2 146 07/21/2024
8.0.1 172 02/05/2024
8.0.0 155 07/21/2024
8.0.0-rc.2.23480.2 135 07/21/2024
8.0.0-rc.1.23421.29 153 07/21/2024
8.0.0-preview.7.23375.9 141 07/21/2024
8.0.0-preview.6.23329.11 138 07/21/2024
8.0.0-preview.5.23302.2 137 07/21/2024
8.0.0-preview.4.23260.4 150 07/21/2024
8.0.0-preview.3.23177.8 145 07/21/2024
8.0.0-preview.2.23153.2 137 07/21/2024
8.0.0-preview.1.23112.2 142 07/21/2024
7.0.20 151 07/21/2024
7.0.19 138 07/21/2024
7.0.18 133 07/21/2024
7.0.17 139 07/21/2024
7.0.16 152 07/21/2024
7.0.15 151 07/21/2024
7.0.14 147 07/21/2024
7.0.13 145 07/21/2024
7.0.12 154 07/21/2024
7.0.11 144 07/21/2024
7.0.10 144 07/21/2024
7.0.9 153 07/21/2024
7.0.8 133 07/21/2024
7.0.7 138 07/21/2024
7.0.5 147 07/21/2024
7.0.4 149 07/21/2024
7.0.3 149 07/21/2024
7.0.2 153 07/21/2024
7.0.1 139 07/21/2024
7.0.0 151 07/21/2024
7.0.0-rc.2.22476.2 147 07/21/2024
7.0.0-rc.1.22427.2 151 07/21/2024
7.0.0-preview.7.22376.6 132 07/21/2024
7.0.0-preview.6.22330.3 140 07/21/2024
7.0.0-preview.5.22303.8 158 07/21/2024
7.0.0-preview.4.22251.1 161 07/21/2024
7.0.0-preview.3.22178.4 142 07/21/2024
7.0.0-preview.2.22153.2 146 07/21/2024
7.0.0-preview.1.22109.13 148 07/21/2024
6.0.36 106 11/14/2024
6.0.35 119 10/16/2024
6.0.33 129 08/30/2024
6.0.32 164 07/21/2024
6.0.31 145 07/21/2024
6.0.30 152 07/21/2024
6.0.29 151 07/21/2024
6.0.28 134 07/21/2024
6.0.27 136 07/21/2024
6.0.26 155 07/21/2024
6.0.25 152 07/21/2024
6.0.24 156 07/21/2024
6.0.23 147 07/21/2024
6.0.22 144 07/21/2024
6.0.21 152 07/21/2024
6.0.20 154 07/21/2024
6.0.19 164 07/21/2024
6.0.18 131 07/21/2024
6.0.16 126 07/21/2024
6.0.15 161 07/21/2024
6.0.14 152 07/21/2024
6.0.13 159 07/21/2024
6.0.12 128 07/21/2024
6.0.11 157 07/21/2024
6.0.10 137 07/21/2024
6.0.9 170 07/21/2024
6.0.8 153 07/21/2024
6.0.7 146 07/21/2024
6.0.6 144 07/21/2024
6.0.5 144 07/21/2024
6.0.4 169 07/21/2024
6.0.3 144 07/21/2024
6.0.2 157 07/21/2024
6.0.1 141 07/21/2024
6.0.0 127 07/21/2024
6.0.0-rc.2.21480.10 120 07/21/2024
6.0.0-rc.1.21452.15 138 07/21/2024
6.0.0-preview.7.21378.6 153 07/21/2024
6.0.0-preview.6.21355.2 142 07/21/2024
6.0.0-preview.5.21301.17 145 07/21/2024
6.0.0-preview.4.21253.5 124 07/21/2024
6.0.0-preview.3.21201.13 136 07/21/2024
6.0.0-preview.2.21154.6 137 07/21/2024
6.0.0-preview.1.21103.6 136 07/21/2024
5.0.17 142 07/21/2024
5.0.16 142 07/21/2024
5.0.15 145 07/21/2024
5.0.14 149 07/21/2024
5.0.13 153 07/21/2024
5.0.12 147 07/21/2024
5.0.11 147 07/21/2024
5.0.10 147 07/21/2024
5.0.9 141 07/21/2024
5.0.8 142 07/21/2024
5.0.7 146 07/21/2024
5.0.6 146 07/21/2024
5.0.5 165 07/21/2024
5.0.4 141 07/21/2024
5.0.3 133 07/21/2024
5.0.2 151 07/21/2024
5.0.1 146 07/21/2024
5.0.0 144 07/21/2024
5.0.0-rc.2.20475.17 151 07/21/2024
5.0.0-rc.1.20451.17 147 07/21/2024
5.0.0-preview.8.20414.8 143 07/21/2024
5.0.0-preview.7.20365.19 129 07/21/2024
5.0.0-preview.6.20312.15 148 07/21/2024
5.0.0-preview.5.20279.2 152 07/21/2024
5.0.0-preview.4.20257.10 140 07/21/2024
5.0.0-preview.3.20215.14 146 07/21/2024
5.0.0-preview.2.20167.3 143 07/21/2024
5.0.0-preview.1.20124.5 137 07/21/2024
3.1.32 141 07/21/2024
3.1.31 156 07/21/2024
3.1.30 137 07/21/2024
3.1.29 142 07/21/2024
3.1.28 143 07/21/2024
3.1.27 148 07/21/2024
3.1.26 143 07/21/2024
3.1.25 148 07/21/2024
3.1.24 154 07/21/2024
3.1.23 135 07/21/2024
3.1.22 158 07/21/2024
3.1.21 134 07/21/2024
3.1.20 149 07/21/2024
3.1.19 159 07/21/2024
3.1.18 125 07/21/2024
3.1.17 151 07/21/2024
3.1.16 147 07/21/2024
3.1.15 156 07/21/2024
3.1.14 148 07/21/2024
3.1.13 153 07/21/2024
3.1.12 145 07/21/2024
3.1.11 155 07/21/2024
3.1.10 153 07/21/2024
3.1.9 143 07/21/2024
3.1.8 172 07/21/2024
3.1.7 147 07/21/2024
3.1.6 141 07/21/2024
3.1.5 145 07/21/2024
3.1.4 154 07/21/2024
3.1.3 139 07/21/2024
3.1.2 149 07/21/2024
3.1.1 142 07/21/2024
3.1.0 135 07/21/2024
3.1.0-preview3.19555.2 149 07/21/2024
3.1.0-preview2.19528.8 145 07/21/2024
3.1.0-preview1.19508.20 161 07/21/2024
3.0.3 148 07/21/2024
3.0.2 137 07/21/2024
3.0.0 151 07/21/2024
3.0.0-rc1.19457.4 128 07/21/2024
3.0.0-preview9.19424.4 148 07/21/2024
3.0.0-preview8.19405.7 152 07/21/2024
3.0.0-preview7.19365.7 150 07/21/2024
3.0.0-preview6.19307.2 148 07/21/2024
3.0.0-preview5-19227-01 148 07/21/2024
3.0.0-preview4-19216-03 143 07/21/2024
3.0.0-preview3-19153-02 164 07/21/2024
3.0.0-preview-19075-0444 152 07/21/2024
3.0.0-preview-18579-0056 154 07/21/2024
2.2.8 132 07/21/2024
2.2.0 142 07/21/2024
2.2.0-preview3-35497 160 07/21/2024
2.2.0-preview2-35157 150 07/21/2024