Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore
10.0.1
Prefix Reserved
dotnet add package Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore --version 10.0.1
NuGet\Install-Package Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore -Version 10.0.1
<PackageReference Include="Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore" Version="10.0.1" />
<PackageVersion Include="Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore" Version="10.0.1" />
<PackageReference Include="Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore" />
paket add Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore --version 10.0.1
#r "nuget: Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore, 10.0.1"
#:package Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore@10.0.1
#addin nuget:?package=Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore&version=10.0.1
#tool nuget:?package=Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore&version=10.0.1
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-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Microsoft.EntityFrameworkCore.Relational (>= 10.0.1)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 10.0.1)
- Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions (>= 10.0.1)
NuGet packages (122)
Showing the top 5 NuGet packages that depend on Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore:
| Package | Downloads |
|---|---|
|
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL
A PostgreSQL® provider for Entity Framework Core that integrates with Aspire, including connection pooling, health checks, logging, and telemetry. |
|
|
Reo.Core.Database
Package Description |
|
|
Aspire.Microsoft.EntityFrameworkCore.SqlServer
A Microsoft SQL Server provider for Entity Framework Core that integrates with Aspire, including connection pooling, health check, logging, and telemetry. |
|
|
Reo.Core.Testing
Package Description |
|
|
FenixAlliance.ACL.Dependencies
Application Component for the Alliance Business Suite. |
GitHub repositories (56)
Showing the top 20 popular GitHub repositories that depend on Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore:
| Repository | Stars |
|---|---|
|
jellyfin/jellyfin
The Free Software Media System - Server Backend & API
|
|
|
dotnet/AspNetCore.Docs
Documentation for ASP.NET Core
|
|
|
dotnet/aspire
Aspire is the tool for code-first, extensible, observable dev and deploy.
|
|
|
jasontaylordev/NorthwindTraders
Northwind Traders is a sample application built using ASP.NET Core and Entity Framework Core.
|
|
|
ivanpaulovich/clean-architecture-manga
:cyclone: Clean Architecture with .NET6, C#10 and React+Redux. Use cases as central organizing structure, completely testable, decoupled from frameworks
|
|
|
skoruba/IdentityServer4.Admin
The administration for the IdentityServer4 and Asp.Net Core Identity
|
|
|
vietnam-devs/coolstore-microservices
A full-stack .NET microservices build on Dapr and Tye
|
|
|
Squidex/squidex
Headless CMS and Content Managment Hub
|
|
|
featbit/featbit
Enterprise-grade feature flag platform that you can self-host. Get started - free.
|
|
|
fullstackproltd/AspNetCoreSpa
Asp.Net 7.0 & Angular 15 SPA Fullstack application with plenty of examples. Live demo:
|
|
|
bitfoundation/bitplatform
Build all of your apps using what you already know and love ❤️
|
|
|
CodeMazeBlog/CodeMazeGuides
The main repository for all the Code Maze guides
|
|
|
mehdihadeli/food-delivery-microservices
🍔 A practical and cloud-native food delivery microservices, built with .Net Aspire, .Net 9, MassTransit, Domain-Driven Design, CQRS, Vertical Slice Architecture, Event-Driven Architecture, and the latest technologies.
|
|
|
Amitpnk/Onion-architecture-ASP.NET-Core
WhiteApp API solution template which is built on Onion Architecture with all essential feature using .NET 8!
|
|
|
ntxinh/AspNetCore-DDD
Full ASP.NET Core 10.0 LTS application with DDD, CQRS and Event Sourcing
|
|
|
markjprice/cs10dotnet6
Repository for the Packt Publishing book titled "C# 10 and .NET 6 - Modern Cross-Platform Development" by Mark J. Price
|
|
|
BehzadDara/SampleProject
|
|
|
markjprice/cs12dotnet8
Repository for the Packt Publishing book titled "C# 12 and .NET 8 - Modern Cross-Platform Development Fundamentals" by Mark J. Price
|
|
|
Aguafrommars/TheIdServer
OpenID/Connect, OAuth2, WS-Federation and SAML 2.0 server based on Duende IdentityServer and ITFoxtec Identity SAML 2.0 with its admin UI
|
|
|
iayti/CleanArchitecture
ASP.NET Core 6 Web API Clean Architecture Solution Template
|
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 10.0.1 | 93,759 | 12/9/2025 | |
| 10.0.0 | 411,758 | 11/11/2025 | |
| 10.0.0-rc.2.25502.107 | 11,245 | 10/14/2025 | |
| 10.0.0-rc.1.25451.107 | 15,325 | 9/9/2025 | |
| 10.0.0-preview.7.25380.108 | 1,796 | 8/12/2025 | |
| 10.0.0-preview.6.25358.103 | 552 | 7/15/2025 | |
| 10.0.0-preview.5.25277.114 | 1,339 | 6/6/2025 | |
| 10.0.0-preview.4.25258.110 | 657 | 5/12/2025 | |
| 10.0.0-preview.3.25172.1 | 512 | 4/10/2025 | |
| 10.0.0-preview.2.25164.1 | 451 | 3/18/2025 | |
| 10.0.0-preview.1.25120.3 | 617 | 2/25/2025 | |
| 9.0.11 | 200,424 | 11/11/2025 | |
| 9.0.10 | 517,393 | 10/14/2025 | |
| 9.0.9 | 1,288,087 | 9/9/2025 | |
| 9.0.8 | 572,499 | 8/5/2025 | |
| 9.0.7 | 994,166 | 7/8/2025 | |
| 9.0.6 | 594,737 | 6/10/2025 | |
| 9.0.5 | 681,432 | 5/13/2025 | |
| 9.0.4 | 1,384,705 | 4/8/2025 | |
| 9.0.3 | 676,739 | 3/11/2025 | |
| 9.0.2 | 877,987 | 2/11/2025 | |
| 9.0.1 | 591,958 | 1/14/2025 | |
| 9.0.0 | 1,085,873 | 11/12/2024 | |
| 9.0.0-rc.2.24474.3 | 18,736 | 10/8/2024 | |
| 9.0.0-rc.1.24452.1 | 4,938 | 9/10/2024 | |
| 9.0.0-preview.7.24406.2 | 778 | 8/13/2024 | |
| 9.0.0-preview.6.24328.4 | 1,406 | 7/9/2024 | |
| 9.0.0-preview.5.24306.11 | 591 | 6/11/2024 | |
| 9.0.0-preview.4.24267.6 | 441 | 5/21/2024 | |
| 9.0.0-preview.3.24172.13 | 73,465 | 4/11/2024 | |
| 9.0.0-preview.2.24128.4 | 1,386 | 3/12/2024 | |
| 9.0.0-preview.1.24081.5 | 21,078 | 2/13/2024 | |
| 8.0.22 | 174,627 | 11/11/2025 | |
| 8.0.21 | 247,957 | 10/14/2025 | |
| 8.0.20 | 398,573 | 9/9/2025 | |
| 8.0.19 | 363,810 | 8/4/2025 | |
| 8.0.18 | 338,942 | 7/8/2025 | |
| 8.0.17 | 526,776 | 6/10/2025 | |
| 8.0.16 | 405,427 | 5/13/2025 | |
| 8.0.15 | 859,556 | 4/8/2025 | |
| 8.0.14 | 1,507,854 | 3/11/2025 | |
| 8.0.13 | 726,575 | 2/11/2025 | |
| 8.0.12 | 1,085,516 | 1/14/2025 | |
| 8.0.11 | 3,306,144 | 11/12/2024 | |
| 8.0.10 | 3,077,967 | 10/8/2024 | |
| 8.0.8 | 3,145,650 | 8/13/2024 | |
| 8.0.7 | 2,209,147 | 7/9/2024 | |
| 8.0.6 | 2,011,719 | 5/28/2024 | |
| 8.0.5 | 817,819 | 5/14/2024 | |
| 8.0.4 | 2,304,774 | 4/9/2024 | |
| 8.0.3 | 1,389,346 | 3/12/2024 | |
| 8.0.2 | 1,588,207 | 2/13/2024 | |
| 8.0.1 | 1,928,577 | 1/9/2024 | |
| 8.0.0 | 3,119,561 | 11/14/2023 | |
| 8.0.0-rc.2.23480.2 | 17,458 | 10/10/2023 | |
| 8.0.0-rc.1.23421.29 | 13,671 | 9/12/2023 | |
| 8.0.0-preview.7.23375.9 | 18,694 | 8/8/2023 | |
| 8.0.0-preview.6.23329.11 | 7,038 | 7/11/2023 | |
| 8.0.0-preview.5.23302.2 | 3,558 | 6/13/2023 | |
| 8.0.0-preview.4.23260.4 | 882 | 5/16/2023 | |
| 8.0.0-preview.3.23177.8 | 2,645 | 4/11/2023 | |
| 8.0.0-preview.2.23153.2 | 591 | 3/14/2023 | |
| 8.0.0-preview.1.23112.2 | 51,235 | 2/21/2023 | |
| 7.0.20 | 233,652 | 5/28/2024 | |
| 7.0.19 | 33,191 | 5/14/2024 | |
| 7.0.18 | 102,074 | 4/9/2024 | |
| 7.0.17 | 297,570 | 3/12/2024 | |
| 7.0.16 | 244,793 | 2/13/2024 | |
| 7.0.15 | 260,994 | 1/9/2024 | |
| 7.0.14 | 566,445 | 11/14/2023 | |
| 7.0.13 | 451,442 | 10/24/2023 | |
| 7.0.12 | 373,367 | 10/10/2023 | |
| 7.0.11 | 615,687 | 9/12/2023 | |
| 7.0.10 | 551,912 | 8/8/2023 | |
| 7.0.9 | 504,749 | 7/11/2023 | |
| 7.0.8 | 650,267 | 6/22/2023 | |
| 7.0.7 | 262,168 | 6/13/2023 | |
| 7.0.5 | 1,534,799 | 4/11/2023 | |
| 7.0.4 | 517,054 | 3/14/2023 | |
| 7.0.3 | 871,857 | 2/14/2023 | |
| 7.0.2 | 731,821 | 1/10/2023 | |
| 7.0.1 | 270,677 | 12/13/2022 | |
| 7.0.0 | 426,202 | 11/7/2022 | |
| 7.0.0-rc.2.22476.2 | 4,554 | 10/11/2022 | |
| 7.0.0-rc.1.22427.2 | 2,908 | 9/14/2022 | |
| 7.0.0-preview.7.22376.6 | 2,985 | 8/9/2022 | |
| 7.0.0-preview.6.22330.3 | 1,357 | 7/12/2022 | |
| 7.0.0-preview.5.22303.8 | 978 | 6/14/2022 | |
| 7.0.0-preview.4.22251.1 | 4,418 | 5/10/2022 | |
| 7.0.0-preview.3.22178.4 | 2,682 | 4/13/2022 | |
| 7.0.0-preview.2.22153.2 | 553 | 3/14/2022 | |
| 7.0.0-preview.1.22109.13 | 655 | 2/17/2022 | |
| 6.0.36 | 264,591 | 11/12/2024 | |
| 6.0.35 | 117,044 | 10/8/2024 | |
| 6.0.33 | 151,970 | 8/13/2024 | |
| 6.0.32 | 172,395 | 7/9/2024 | |
| 6.0.31 | 144,697 | 5/28/2024 | |
| 6.0.30 | 76,014 | 5/14/2024 | |
| 6.0.29 | 231,507 | 4/9/2024 | |
| 6.0.28 | 160,201 | 3/12/2024 | |
| 6.0.27 | 328,805 | 2/13/2024 | |
| 6.0.26 | 377,934 | 1/9/2024 | |
| 6.0.25 | 620,912 | 11/14/2023 | |
| 6.0.24 | 296,195 | 10/24/2023 | |
| 6.0.23 | 185,330 | 10/10/2023 | |
| 6.0.22 | 470,153 | 9/12/2023 | |
| 6.0.21 | 507,115 | 8/8/2023 | |
| 6.0.20 | 425,157 | 7/11/2023 | |
| 6.0.19 | 290,048 | 6/22/2023 | |
| 6.0.18 | 169,470 | 6/13/2023 | |
| 6.0.16 | 1,109,264 | 4/11/2023 | |
| 6.0.15 | 770,688 | 3/14/2023 | |
| 6.0.14 | 563,344 | 2/14/2023 | |
| 6.0.13 | 905,298 | 1/10/2023 | |
| 6.0.12 | 860,893 | 12/13/2022 | |
| 6.0.11 | 966,754 | 11/7/2022 | |
| 6.0.10 | 1,964,970 | 10/11/2022 | |
| 6.0.9 | 1,366,295 | 9/13/2022 | |
| 6.0.8 | 1,612,145 | 8/9/2022 | |
| 6.0.7 | 1,694,150 | 7/12/2022 | |
| 6.0.6 | 1,508,755 | 6/14/2022 | |
| 6.0.5 | 1,920,442 | 5/10/2022 | |
| 6.0.4 | 938,231 | 4/11/2022 | |
| 6.0.3 | 1,684,737 | 3/8/2022 | |
| 6.0.2 | 876,302 | 2/8/2022 | |
| 6.0.1 | 1,735,391 | 12/14/2021 | |
| 6.0.0 | 1,692,750 | 11/8/2021 | |
| 6.0.0-rc.2.21480.10 | 11,790 | 10/12/2021 | |
| 6.0.0-rc.1.21452.15 | 5,653 | 9/14/2021 | |
| 6.0.0-preview.7.21378.6 | 11,730 | 8/10/2021 | |
| 6.0.0-preview.6.21355.2 | 1,578 | 7/14/2021 | |
| 6.0.0-preview.5.21301.17 | 17,219 | 6/15/2021 | |
| 6.0.0-preview.4.21253.5 | 1,111 | 5/24/2021 | |
| 6.0.0-preview.3.21201.13 | 1,335 | 4/8/2021 | |
| 6.0.0-preview.2.21154.6 | 1,103 | 3/11/2021 | |
| 6.0.0-preview.1.21103.6 | 1,440 | 2/12/2021 | |
| 5.0.17 | 554,901 | 5/10/2022 | |
| 5.0.16 | 208,686 | 4/11/2022 | |
| 5.0.15 | 124,594 | 3/8/2022 | |
| 5.0.14 | 89,650 | 2/8/2022 | |
| 5.0.13 | 243,649 | 12/14/2021 | |
| 5.0.12 | 352,938 | 11/7/2021 | |
| 5.0.11 | 810,104 | 10/12/2021 | |
| 5.0.10 | 560,649 | 9/14/2021 | |
| 5.0.9 | 610,316 | 8/10/2021 | |
| 5.0.8 | 400,450 | 7/13/2021 | |
| 5.0.7 | 848,422 | 6/8/2021 | |
| 5.0.6 | 675,155 | 5/11/2021 | |
| 5.0.5 | 876,355 | 4/6/2021 | |
| 5.0.4 | 364,949 | 3/9/2021 | |
| 5.0.3 | 440,740 | 2/9/2021 | |
| 5.0.2 | 548,729 | 1/12/2021 | |
| 5.0.1 | 545,352 | 12/8/2020 | |
| 5.0.0 | 570,694 | 11/9/2020 | |
| 5.0.0-rc.2.20475.17 | 5,173 | 10/13/2020 | |
| 5.0.0-rc.1.20451.17 | 4,317 | 9/14/2020 | |
| 5.0.0-preview.8.20414.8 | 3,246 | 8/25/2020 | |
| 5.0.0-preview.7.20365.19 | 1,600 | 7/21/2020 | |
| 5.0.0-preview.6.20312.15 | 1,071 | 6/25/2020 | |
| 5.0.0-preview.5.20279.2 | 1,646 | 6/10/2020 | |
| 5.0.0-preview.4.20257.10 | 1,183 | 5/18/2020 | |
| 5.0.0-preview.3.20215.14 | 1,098 | 4/23/2020 | |
| 5.0.0-preview.2.20167.3 | 1,281 | 4/2/2020 | |
| 5.0.0-preview.1.20124.5 | 4,095 | 3/16/2020 | |
| 3.1.32 | 185,970 | 12/13/2022 | |
| 3.1.31 | 23,946 | 11/8/2022 | |
| 3.1.30 | 32,882 | 10/11/2022 | |
| 3.1.29 | 29,789 | 9/13/2022 | |
| 3.1.28 | 33,523 | 8/9/2022 | |
| 3.1.27 | 62,152 | 7/12/2022 | |
| 3.1.26 | 47,036 | 6/14/2022 | |
| 3.1.25 | 50,409 | 5/10/2022 | |
| 3.1.24 | 63,395 | 4/11/2022 | |
| 3.1.23 | 96,199 | 3/8/2022 | |
| 3.1.22 | 229,843 | 12/14/2021 | |
| 3.1.21 | 102,350 | 11/7/2021 | |
| 3.1.20 | 60,730 | 10/11/2021 | |
| 3.1.19 | 95,640 | 9/14/2021 | |
| 3.1.18 | 167,187 | 8/10/2021 | |
| 3.1.17 | 186,932 | 7/13/2021 | |
| 3.1.16 | 233,355 | 6/8/2021 | |
| 3.1.15 | 136,626 | 5/11/2021 | |
| 3.1.14 | 86,637 | 4/6/2021 | |
| 3.1.13 | 147,060 | 3/9/2021 | |
| 3.1.12 | 265,701 | 2/9/2021 | |
| 3.1.11 | 175,133 | 1/12/2021 | |
| 3.1.10 | 547,695 | 11/9/2020 | |
| 3.1.9 | 935,223 | 10/13/2020 | |
| 3.1.8 | 882,346 | 9/8/2020 | |
| 3.1.7 | 517,643 | 8/11/2020 | |
| 3.1.6 | 492,206 | 7/14/2020 | |
| 3.1.5 | 545,377 | 6/9/2020 | |
| 3.1.4 | 574,918 | 5/12/2020 | |
| 3.1.3 | 780,364 | 3/24/2020 | |
| 3.1.2 | 650,884 | 2/18/2020 | |
| 3.1.1 | 626,847 | 1/14/2020 | |
| 3.1.0 | 744,350 | 12/3/2019 | |
| 3.1.0-preview3.19555.2 | 2,772 | 11/13/2019 | |
| 3.1.0-preview2.19528.8 | 826 | 11/1/2019 | |
| 3.1.0-preview1.19508.20 | 1,024 | 10/15/2019 | |
| 3.0.3 | 25,996 | 2/18/2020 | |
| 3.0.2 | 20,304 | 1/14/2020 | |
| 3.0.0 | 293,756 | 9/23/2019 | |
| 3.0.0-rc1.19457.4 | 1,679 | 9/16/2019 | |
| 3.0.0-preview9.19424.4 | 1,695 | 9/4/2019 | |
| 3.0.0-preview8.19405.7 | 21,171 | 8/13/2019 | |
| 3.0.0-preview7.19365.7 | 1,499 | 7/23/2019 | |
| 3.0.0-preview6.19307.2 | 1,406 | 6/12/2019 | |
| 3.0.0-preview5-19227-01 | 104,441 | 5/6/2019 | |
| 3.0.0-preview4-19216-03 | 1,406 | 4/18/2019 | |
| 3.0.0-preview3-19153-02 | 881 | 3/6/2019 | |
| 3.0.0-preview-19075-0444 | 884 | 1/29/2019 | |
| 3.0.0-preview-18579-0056 | 876 | 12/3/2018 | |
| 2.2.0 | 3,103,281 | 12/3/2018 | |
| 2.2.0-preview3-35497 | 5,107 | 10/17/2018 |