Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore
10.0.0-preview.2.25164.1
Prefix Reserved
dotnet add package Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore --version 10.0.0-preview.2.25164.1
NuGet\Install-Package Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore -Version 10.0.0-preview.2.25164.1
<PackageReference Include="Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore" Version="10.0.0-preview.2.25164.1" />
paket add Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore --version 10.0.0-preview.2.25164.1
#r "nuget: Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore, 10.0.0-preview.2.25164.1"
// Install Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore as a Cake Addin #addin nuget:?package=Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore&version=10.0.0-preview.2.25164.1&prerelease // Install Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore as a Cake Tool #tool nuget:?package=Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore&version=10.0.0-preview.2.25164.1&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.2.25163.8)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 10.0.0-preview.2.25164.1)
- Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions (>= 10.0.0-preview.2.25164.1)
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 | 189 | 3/18/2025 | |
10.0.0-preview.1.25120.3 | 423 | 2/25/2025 | |
9.0.3 | 104,441 | 3/11/2025 | |
9.0.2 | 306,947 | 2/11/2025 | |
9.0.1 | 298,300 | 1/14/2025 | |
9.0.0 | 556,686 | 11/12/2024 | |
9.0.0-rc.2.24474.3 | 15,968 | 10/8/2024 | |
9.0.0-rc.1.24452.1 | 4,802 | 9/10/2024 | |
9.0.0-preview.7.24406.2 | 489 | 8/13/2024 | |
9.0.0-preview.6.24328.4 | 1,079 | 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,301 | 4/11/2024 | |
9.0.0-preview.2.24128.4 | 1,112 | 3/12/2024 | |
9.0.0-preview.1.24081.5 | 20,796 | 2/13/2024 | |
8.0.14 | 94,400 | 3/11/2025 | |
8.0.13 | 198,384 | 2/11/2025 | |
8.0.12 | 324,338 | 1/14/2025 | |
8.0.11 | 1,586,101 | 11/12/2024 | |
8.0.10 | 1,623,427 | 10/8/2024 | |
8.0.8 | 2,131,905 | 8/13/2024 | |
8.0.7 | 1,414,800 | 7/9/2024 | |
8.0.6 | 1,509,786 | 5/28/2024 | |
8.0.5 | 544,827 | 5/14/2024 | |
8.0.4 | 1,825,341 | 4/9/2024 | |
8.0.3 | 1,054,814 | 3/12/2024 | |
8.0.2 | 1,169,664 | 2/13/2024 | |
8.0.1 | 1,230,600 | 1/9/2024 | |
8.0.0 | 2,011,529 | 11/14/2023 | |
8.0.0-rc.2.23480.2 | 17,174 | 10/10/2023 | |
8.0.0-rc.1.23421.29 | 12,272 | 9/12/2023 | |
8.0.0-preview.7.23375.9 | 17,716 | 8/8/2023 | |
8.0.0-preview.6.23329.11 | 6,747 | 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,342 | 4/11/2023 | |
8.0.0-preview.2.23153.2 | 474 | 3/14/2023 | |
8.0.0-preview.1.23112.2 | 51,118 | 2/21/2023 | |
7.0.20 | 132,706 | 5/28/2024 | |
7.0.19 | 14,075 | 5/14/2024 | |
7.0.18 | 69,346 | 4/9/2024 | |
7.0.17 | 271,318 | 3/12/2024 | |
7.0.16 | 197,301 | 2/13/2024 | |
7.0.15 | 222,895 | 1/9/2024 | |
7.0.14 | 526,735 | 11/14/2023 | |
7.0.13 | 405,365 | 10/24/2023 | |
7.0.12 | 333,901 | 10/10/2023 | |
7.0.11 | 576,452 | 9/12/2023 | |
7.0.10 | 500,855 | 8/8/2023 | |
7.0.9 | 468,040 | 7/11/2023 | |
7.0.8 | 595,047 | 6/22/2023 | |
7.0.7 | 197,736 | 6/13/2023 | |
7.0.5 | 1,473,385 | 4/11/2023 | |
7.0.4 | 481,405 | 3/14/2023 | |
7.0.3 | 664,529 | 2/14/2023 | |
7.0.2 | 681,252 | 1/10/2023 | |
7.0.1 | 241,224 | 12/13/2022 | |
7.0.0 | 373,066 | 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,526 | 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 | 56,456 | 11/12/2024 | |
6.0.35 | 77,908 | 10/8/2024 | |
6.0.33 | 102,285 | 8/13/2024 | |
6.0.32 | 113,414 | 7/9/2024 | |
6.0.31 | 105,319 | 5/28/2024 | |
6.0.30 | 45,307 | 5/14/2024 | |
6.0.29 | 182,910 | 4/9/2024 | |
6.0.28 | 117,317 | 3/12/2024 | |
6.0.27 | 265,688 | 2/13/2024 | |
6.0.26 | 340,660 | 1/9/2024 | |
6.0.25 | 547,784 | 11/14/2023 | |
6.0.24 | 256,750 | 10/24/2023 | |
6.0.23 | 158,239 | 10/10/2023 | |
6.0.22 | 425,537 | 9/12/2023 | |
6.0.21 | 439,076 | 8/8/2023 | |
6.0.20 | 358,988 | 7/11/2023 | |
6.0.19 | 255,358 | 6/22/2023 | |
6.0.18 | 146,212 | 6/13/2023 | |
6.0.16 | 1,001,461 | 4/11/2023 | |
6.0.15 | 624,035 | 3/14/2023 | |
6.0.14 | 511,747 | 2/14/2023 | |
6.0.13 | 821,901 | 1/10/2023 | |
6.0.12 | 739,225 | 12/13/2022 | |
6.0.11 | 903,615 | 11/7/2022 | |
6.0.10 | 1,878,323 | 10/11/2022 | |
6.0.9 | 1,251,302 | 9/13/2022 | |
6.0.8 | 1,532,235 | 8/9/2022 | |
6.0.7 | 1,608,780 | 7/12/2022 | |
6.0.6 | 1,423,217 | 6/14/2022 | |
6.0.5 | 1,834,108 | 5/10/2022 | |
6.0.4 | 899,865 | 4/11/2022 | |
6.0.3 | 1,592,898 | 3/8/2022 | |
6.0.2 | 834,068 | 2/8/2022 | |
6.0.1 | 1,628,412 | 12/14/2021 | |
6.0.0 | 1,527,361 | 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,177 | 4/8/2021 | |
6.0.0-preview.2.21154.6 | 868 | 3/11/2021 | |
6.0.0-preview.1.21103.6 | 1,121 | 2/12/2021 | |
5.0.17 | 488,954 | 5/10/2022 | |
5.0.16 | 177,820 | 4/11/2022 | |
5.0.15 | 106,938 | 3/8/2022 | |
5.0.14 | 73,724 | 2/8/2022 | |
5.0.13 | 223,530 | 12/14/2021 | |
5.0.12 | 318,286 | 11/7/2021 | |
5.0.11 | 772,155 | 10/12/2021 | |
5.0.10 | 531,554 | 9/14/2021 | |
5.0.9 | 584,855 | 8/10/2021 | |
5.0.8 | 373,520 | 7/13/2021 | |
5.0.7 | 794,630 | 6/8/2021 | |
5.0.6 | 630,789 | 5/11/2021 | |
5.0.5 | 840,270 | 4/6/2021 | |
5.0.4 | 341,589 | 3/9/2021 | |
5.0.3 | 410,298 | 2/9/2021 | |
5.0.2 | 526,793 | 1/12/2021 | |
5.0.1 | 519,597 | 12/8/2020 | |
5.0.0 | 535,202 | 11/9/2020 | |
5.0.0-rc.2.20475.17 | 4,774 | 10/13/2020 | |
5.0.0-rc.1.20451.17 | 4,043 | 9/14/2020 | |
5.0.0-preview.8.20414.8 | 2,990 | 8/25/2020 | |
5.0.0-preview.7.20365.19 | 1,352 | 7/21/2020 | |
5.0.0-preview.6.20312.15 | 815 | 6/25/2020 | |
5.0.0-preview.5.20279.2 | 1,389 | 6/10/2020 | |
5.0.0-preview.4.20257.10 | 927 | 5/18/2020 | |
5.0.0-preview.3.20215.14 | 852 | 4/23/2020 | |
5.0.0-preview.2.20167.3 | 1,020 | 4/2/2020 | |
5.0.0-preview.1.20124.5 | 3,840 | 3/16/2020 | |
3.1.32 | 144,911 | 12/13/2022 | |
3.1.31 | 8,823 | 11/8/2022 | |
3.1.30 | 17,395 | 10/11/2022 | |
3.1.29 | 14,130 | 9/13/2022 | |
3.1.28 | 18,137 | 8/9/2022 | |
3.1.27 | 46,084 | 7/12/2022 | |
3.1.26 | 29,392 | 6/14/2022 | |
3.1.25 | 34,651 | 5/10/2022 | |
3.1.24 | 48,528 | 4/11/2022 | |
3.1.23 | 80,604 | 3/8/2022 | |
3.1.22 | 198,866 | 12/14/2021 | |
3.1.21 | 84,796 | 11/7/2021 | |
3.1.20 | 44,686 | 10/11/2021 | |
3.1.19 | 80,057 | 9/14/2021 | |
3.1.18 | 150,023 | 8/10/2021 | |
3.1.17 | 164,462 | 7/13/2021 | |
3.1.16 | 217,354 | 6/8/2021 | |
3.1.15 | 119,509 | 5/11/2021 | |
3.1.14 | 69,678 | 4/6/2021 | |
3.1.13 | 129,122 | 3/9/2021 | |
3.1.12 | 246,360 | 2/9/2021 | |
3.1.11 | 156,873 | 1/12/2021 | |
3.1.10 | 524,297 | 11/9/2020 | |
3.1.9 | 855,800 | 10/13/2020 | |
3.1.8 | 854,047 | 9/8/2020 | |
3.1.7 | 490,984 | 8/11/2020 | |
3.1.6 | 464,394 | 7/14/2020 | |
3.1.5 | 523,724 | 6/9/2020 | |
3.1.4 | 550,383 | 5/12/2020 | |
3.1.3 | 755,011 | 3/24/2020 | |
3.1.2 | 629,443 | 2/18/2020 | |
3.1.1 | 597,976 | 1/14/2020 | |
3.1.0 | 701,514 | 12/3/2019 | |
3.1.0-preview3.19555.2 | 2,423 | 11/13/2019 | |
3.1.0-preview2.19528.8 | 578 | 11/1/2019 | |
3.1.0-preview1.19508.20 | 781 | 10/15/2019 | |
3.0.3 | 9,641 | 2/18/2020 | |
3.0.2 | 5,444 | 1/14/2020 | |
3.0.0 | 275,873 | 9/23/2019 | |
3.0.0-rc1.19457.4 | 1,431 | 9/16/2019 | |
3.0.0-preview9.19424.4 | 1,454 | 9/4/2019 | |
3.0.0-preview8.19405.7 | 19,758 | 8/13/2019 | |
3.0.0-preview7.19365.7 | 1,243 | 7/23/2019 | |
3.0.0-preview6.19307.2 | 1,169 | 6/12/2019 | |
3.0.0-preview5-19227-01 | 96,959 | 5/6/2019 | |
3.0.0-preview4-19216-03 | 1,147 | 4/18/2019 | |
3.0.0-preview3-19153-02 | 636 | 3/6/2019 | |
3.0.0-preview-19075-0444 | 625 | 1/29/2019 | |
3.0.0-preview-18579-0056 | 623 | 12/3/2018 | |
2.2.0 | 2,953,381 | 12/3/2018 | |
2.2.0-preview3-35497 | 3,678 | 10/17/2018 |