Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore 10.0.0-preview.4.25258.110

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.

.NET 10.0

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