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

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