Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore 10.0.0-rc.2.25502.107

About

Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore provides components for performing health checks using Entity Framework Core (EF Core).

How to Use

To use Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore, follow these steps:

Installation

dotnet add package Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore

Configuration

To add a health check for an EF Core DbContext, use the AddDbContextCheck extension method to configure it with your app's service provider. Here's an example:

builder.Services.AddDbContext<SampleDbContext>(options =>
    options.UseSqlServer(builder.Configuration.GetConnectionString("DefaultConnection")));

builder.Services.AddHealthChecks()
    .AddDbContextCheck<SampleDbContext>();

Additional Documentation

For additional documentation and examples, refer to the official documentation on using the Entity Framework Core DbContext probe.

Feedback & Contributing

Microsoft.Extensions.Diagnostics.HealthChecks.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.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore.

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