Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore
10.0.0-preview.1.25120.3
Prefix Reserved
See the version list below for details.
dotnet add package Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore --version 10.0.0-preview.1.25120.3
NuGet\Install-Package Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore -Version 10.0.0-preview.1.25120.3
<PackageReference Include="Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore" Version="10.0.0-preview.1.25120.3" />
<PackageVersion Include="Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore" Version="10.0.0-preview.1.25120.3" />
<PackageReference Include="Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore" />
paket add Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore --version 10.0.0-preview.1.25120.3
#r "nuget: Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore, 10.0.0-preview.1.25120.3"
#addin nuget:?package=Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore&version=10.0.0-preview.1.25120.3&prerelease
#tool nuget:?package=Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore&version=10.0.0-preview.1.25120.3&prerelease
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.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net10.0 is compatible. |
-
net10.0
- Microsoft.EntityFrameworkCore.Relational (>= 10.0.0-preview.1.25081.1)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 10.0.0-preview.1.25120.3)
- Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions (>= 10.0.0-preview.1.25120.3)
NuGet packages (93)
Showing the top 5 NuGet packages that depend on Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore:
Package | Downloads |
---|---|
Reo.Core.Database
Package Description |
|
Reo.Core.Testing
Package Description |
|
FenixAlliance.ACL.Dependencies
Application Component for the Alliance Business Suite. |
|
Be.Vlaanderen.Basisregisters.Api
Common API infrastructure and helpers. |
|
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL
A PostgreSQL® provider for Entity Framework Core that integrates with Aspire, including connection pooling, health checks, logging, and telemetry. |
GitHub repositories (54)
Showing the top 5 popular GitHub repositories that depend on Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore:
Repository | Stars |
---|---|
jellyfin/jellyfin
The Free Software Media System - Server Backend & API
|
|
jasontaylordev/CleanArchitecture
Clean Architecture Solution Template for ASP.NET Core
|
|
dotnet/AspNetCore.Docs
Documentation for ASP.NET Core
|
|
jasontaylordev/NorthwindTraders
Northwind Traders is a sample application built using ASP.NET Core and Entity Framework Core.
|
|
dotnet/aspire
Tools, templates, and packages to accelerate building observable, production-ready apps
|
Version | Downloads | Last updated | |
---|---|---|---|
10.0.0-preview.2.25164.1 | 262 | 3/18/2025 | |
10.0.0-preview.1.25120.3 | 430 | 2/25/2025 | |
9.0.3 | 159,514 | 3/11/2025 | |
9.0.2 | 352,672 | 2/11/2025 | |
9.0.1 | 314,830 | 1/14/2025 | |
9.0.0 | 569,847 | 11/12/2024 | |
9.0.0-rc.2.24474.3 | 16,368 | 10/8/2024 | |
9.0.0-rc.1.24452.1 | 4,805 | 9/10/2024 | |
9.0.0-preview.7.24406.2 | 490 | 8/13/2024 | |
9.0.0-preview.6.24328.4 | 1,086 | 7/9/2024 | |
9.0.0-preview.5.24306.11 | 369 | 6/11/2024 | |
9.0.0-preview.4.24267.6 | 295 | 5/21/2024 | |
9.0.0-preview.3.24172.13 | 73,305 | 4/11/2024 | |
9.0.0-preview.2.24128.4 | 1,117 | 3/12/2024 | |
9.0.0-preview.1.24081.5 | 20,806 | 2/13/2024 | |
8.0.14 | 147,767 | 3/11/2025 | |
8.0.13 | 220,311 | 2/11/2025 | |
8.0.12 | 350,950 | 1/14/2025 | |
8.0.11 | 1,649,834 | 11/12/2024 | |
8.0.10 | 1,669,228 | 10/8/2024 | |
8.0.8 | 2,165,132 | 8/13/2024 | |
8.0.7 | 1,440,868 | 7/9/2024 | |
8.0.6 | 1,527,977 | 5/28/2024 | |
8.0.5 | 552,784 | 5/14/2024 | |
8.0.4 | 1,841,119 | 4/9/2024 | |
8.0.3 | 1,063,734 | 3/12/2024 | |
8.0.2 | 1,182,809 | 2/13/2024 | |
8.0.1 | 1,249,647 | 1/9/2024 | |
8.0.0 | 2,039,854 | 11/14/2023 | |
8.0.0-rc.2.23480.2 | 17,186 | 10/10/2023 | |
8.0.0-rc.1.23421.29 | 12,282 | 9/12/2023 | |
8.0.0-preview.7.23375.9 | 17,734 | 8/8/2023 | |
8.0.0-preview.6.23329.11 | 6,749 | 7/11/2023 | |
8.0.0-preview.5.23302.2 | 3,410 | 6/13/2023 | |
8.0.0-preview.4.23260.4 | 752 | 5/16/2023 | |
8.0.0-preview.3.23177.8 | 2,344 | 4/11/2023 | |
8.0.0-preview.2.23153.2 | 474 | 3/14/2023 | |
8.0.0-preview.1.23112.2 | 51,119 | 2/21/2023 | |
7.0.20 | 135,648 | 5/28/2024 | |
7.0.19 | 14,302 | 5/14/2024 | |
7.0.18 | 69,662 | 4/9/2024 | |
7.0.17 | 271,601 | 3/12/2024 | |
7.0.16 | 198,475 | 2/13/2024 | |
7.0.15 | 223,832 | 1/9/2024 | |
7.0.14 | 527,548 | 11/14/2023 | |
7.0.13 | 406,379 | 10/24/2023 | |
7.0.12 | 334,764 | 10/10/2023 | |
7.0.11 | 577,669 | 9/12/2023 | |
7.0.10 | 501,965 | 8/8/2023 | |
7.0.9 | 469,081 | 7/11/2023 | |
7.0.8 | 596,265 | 6/22/2023 | |
7.0.7 | 199,175 | 6/13/2023 | |
7.0.5 | 1,474,947 | 4/11/2023 | |
7.0.4 | 482,428 | 3/14/2023 | |
7.0.3 | 665,747 | 2/14/2023 | |
7.0.2 | 682,367 | 1/10/2023 | |
7.0.1 | 241,724 | 12/13/2022 | |
7.0.0 | 373,915 | 11/7/2022 | |
7.0.0-rc.2.22476.2 | 4,408 | 10/11/2022 | |
7.0.0-rc.1.22427.2 | 2,742 | 9/14/2022 | |
7.0.0-preview.7.22376.6 | 2,841 | 8/9/2022 | |
7.0.0-preview.6.22330.3 | 1,208 | 7/12/2022 | |
7.0.0-preview.5.22303.8 | 824 | 6/14/2022 | |
7.0.0-preview.4.22251.1 | 4,281 | 5/10/2022 | |
7.0.0-preview.3.22178.4 | 2,527 | 4/13/2022 | |
7.0.0-preview.2.22153.2 | 396 | 3/14/2022 | |
7.0.0-preview.1.22109.13 | 495 | 2/17/2022 | |
6.0.36 | 59,993 | 11/12/2024 | |
6.0.35 | 79,102 | 10/8/2024 | |
6.0.33 | 104,109 | 8/13/2024 | |
6.0.32 | 114,813 | 7/9/2024 | |
6.0.31 | 105,853 | 5/28/2024 | |
6.0.30 | 45,730 | 5/14/2024 | |
6.0.29 | 184,134 | 4/9/2024 | |
6.0.28 | 118,110 | 3/12/2024 | |
6.0.27 | 267,584 | 2/13/2024 | |
6.0.26 | 341,702 | 1/9/2024 | |
6.0.25 | 554,131 | 11/14/2023 | |
6.0.24 | 257,713 | 10/24/2023 | |
6.0.23 | 158,766 | 10/10/2023 | |
6.0.22 | 426,747 | 9/12/2023 | |
6.0.21 | 441,011 | 8/8/2023 | |
6.0.20 | 360,383 | 7/11/2023 | |
6.0.19 | 256,054 | 6/22/2023 | |
6.0.18 | 146,508 | 6/13/2023 | |
6.0.16 | 1,004,815 | 4/11/2023 | |
6.0.15 | 627,600 | 3/14/2023 | |
6.0.14 | 513,006 | 2/14/2023 | |
6.0.13 | 823,963 | 1/10/2023 | |
6.0.12 | 743,373 | 12/13/2022 | |
6.0.11 | 904,893 | 11/7/2022 | |
6.0.10 | 1,880,278 | 10/11/2022 | |
6.0.9 | 1,254,635 | 9/13/2022 | |
6.0.8 | 1,534,471 | 8/9/2022 | |
6.0.7 | 1,610,720 | 7/12/2022 | |
6.0.6 | 1,426,423 | 6/14/2022 | |
6.0.5 | 1,836,364 | 5/10/2022 | |
6.0.4 | 900,726 | 4/11/2022 | |
6.0.3 | 1,594,380 | 3/8/2022 | |
6.0.2 | 835,197 | 2/8/2022 | |
6.0.1 | 1,631,151 | 12/14/2021 | |
6.0.0 | 1,532,317 | 11/8/2021 | |
6.0.0-rc.2.21480.10 | 11,134 | 10/12/2021 | |
6.0.0-rc.1.21452.15 | 5,430 | 9/14/2021 | |
6.0.0-preview.7.21378.6 | 10,832 | 8/10/2021 | |
6.0.0-preview.6.21355.2 | 1,411 | 7/14/2021 | |
6.0.0-preview.5.21301.17 | 17,051 | 6/15/2021 | |
6.0.0-preview.4.21253.5 | 880 | 5/24/2021 | |
6.0.0-preview.3.21201.13 | 1,178 | 4/8/2021 | |
6.0.0-preview.2.21154.6 | 869 | 3/11/2021 | |
6.0.0-preview.1.21103.6 | 1,123 | 2/12/2021 | |
5.0.17 | 490,426 | 5/10/2022 | |
5.0.16 | 178,692 | 4/11/2022 | |
5.0.15 | 106,985 | 3/8/2022 | |
5.0.14 | 73,781 | 2/8/2022 | |
5.0.13 | 223,620 | 12/14/2021 | |
5.0.12 | 318,871 | 11/7/2021 | |
5.0.11 | 772,941 | 10/12/2021 | |
5.0.10 | 531,945 | 9/14/2021 | |
5.0.9 | 585,202 | 8/10/2021 | |
5.0.8 | 373,988 | 7/13/2021 | |
5.0.7 | 795,605 | 6/8/2021 | |
5.0.6 | 631,277 | 5/11/2021 | |
5.0.5 | 840,778 | 4/6/2021 | |
5.0.4 | 341,740 | 3/9/2021 | |
5.0.3 | 410,639 | 2/9/2021 | |
5.0.2 | 526,928 | 1/12/2021 | |
5.0.1 | 519,788 | 12/8/2020 | |
5.0.0 | 535,710 | 11/9/2020 | |
5.0.0-rc.2.20475.17 | 4,779 | 10/13/2020 | |
5.0.0-rc.1.20451.17 | 4,045 | 9/14/2020 | |
5.0.0-preview.8.20414.8 | 2,992 | 8/25/2020 | |
5.0.0-preview.7.20365.19 | 1,354 | 7/21/2020 | |
5.0.0-preview.6.20312.15 | 817 | 6/25/2020 | |
5.0.0-preview.5.20279.2 | 1,391 | 6/10/2020 | |
5.0.0-preview.4.20257.10 | 929 | 5/18/2020 | |
5.0.0-preview.3.20215.14 | 854 | 4/23/2020 | |
5.0.0-preview.2.20167.3 | 1,022 | 4/2/2020 | |
5.0.0-preview.1.20124.5 | 3,842 | 3/16/2020 | |
3.1.32 | 145,783 | 12/13/2022 | |
3.1.31 | 8,848 | 11/8/2022 | |
3.1.30 | 17,443 | 10/11/2022 | |
3.1.29 | 14,218 | 9/13/2022 | |
3.1.28 | 18,162 | 8/9/2022 | |
3.1.27 | 46,322 | 7/12/2022 | |
3.1.26 | 29,433 | 6/14/2022 | |
3.1.25 | 34,680 | 5/10/2022 | |
3.1.24 | 48,528 | 4/11/2022 | |
3.1.23 | 80,650 | 3/8/2022 | |
3.1.22 | 199,278 | 12/14/2021 | |
3.1.21 | 84,975 | 11/7/2021 | |
3.1.20 | 44,703 | 10/11/2021 | |
3.1.19 | 80,065 | 9/14/2021 | |
3.1.18 | 150,134 | 8/10/2021 | |
3.1.17 | 164,777 | 7/13/2021 | |
3.1.16 | 217,566 | 6/8/2021 | |
3.1.15 | 119,606 | 5/11/2021 | |
3.1.14 | 69,724 | 4/6/2021 | |
3.1.13 | 129,218 | 3/9/2021 | |
3.1.12 | 246,527 | 2/9/2021 | |
3.1.11 | 157,019 | 1/12/2021 | |
3.1.10 | 524,727 | 11/9/2020 | |
3.1.9 | 856,926 | 10/13/2020 | |
3.1.8 | 854,647 | 9/8/2020 | |
3.1.7 | 491,329 | 8/11/2020 | |
3.1.6 | 464,868 | 7/14/2020 | |
3.1.5 | 523,870 | 6/9/2020 | |
3.1.4 | 550,645 | 5/12/2020 | |
3.1.3 | 755,531 | 3/24/2020 | |
3.1.2 | 629,625 | 2/18/2020 | |
3.1.1 | 598,498 | 1/14/2020 | |
3.1.0 | 702,506 | 12/3/2019 | |
3.1.0-preview3.19555.2 | 2,425 | 11/13/2019 | |
3.1.0-preview2.19528.8 | 580 | 11/1/2019 | |
3.1.0-preview1.19508.20 | 783 | 10/15/2019 | |
3.0.3 | 9,705 | 2/18/2020 | |
3.0.2 | 5,446 | 1/14/2020 | |
3.0.0 | 275,972 | 9/23/2019 | |
3.0.0-rc1.19457.4 | 1,433 | 9/16/2019 | |
3.0.0-preview9.19424.4 | 1,457 | 9/4/2019 | |
3.0.0-preview8.19405.7 | 19,760 | 8/13/2019 | |
3.0.0-preview7.19365.7 | 1,245 | 7/23/2019 | |
3.0.0-preview6.19307.2 | 1,171 | 6/12/2019 | |
3.0.0-preview5-19227-01 | 96,961 | 5/6/2019 | |
3.0.0-preview4-19216-03 | 1,149 | 4/18/2019 | |
3.0.0-preview3-19153-02 | 638 | 3/6/2019 | |
3.0.0-preview-19075-0444 | 628 | 1/29/2019 | |
3.0.0-preview-18579-0056 | 625 | 12/3/2018 | |
2.2.0 | 2,957,600 | 12/3/2018 | |
2.2.0-preview3-35497 | 3,697 | 10/17/2018 |