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