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 (110)
Showing the top 5 NuGet packages that depend on Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore:
| Package | Downloads |
|---|---|
|
Reo.Core.Database
Package Description |
|
|
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL
A PostgreSQL® provider for Entity Framework Core that integrates with Aspire, including connection pooling, health checks, logging, and telemetry. |
|
|
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 8.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 | 651 | 12/9/2025 | |
| 10.0.0 | 243,783 | 11/11/2025 | |
| 10.0.0-rc.2.25502.107 | 10,674 | 10/14/2025 | |
| 10.0.0-rc.1.25451.107 | 15,252 | 9/9/2025 | |
| 10.0.0-preview.7.25380.108 | 1,748 | 8/12/2025 | |
| 10.0.0-preview.6.25358.103 | 548 | 7/15/2025 | |
| 10.0.0-preview.5.25277.114 | 1,330 | 6/6/2025 | |
| 10.0.0-preview.4.25258.110 | 633 | 5/12/2025 | |
| 10.0.0-preview.3.25172.1 | 503 | 4/10/2025 | |
| 10.0.0-preview.2.25164.1 | 438 | 3/18/2025 | |
| 10.0.0-preview.1.25120.3 | 555 | 2/25/2025 | |
| 9.0.11 | 113,534 | 11/11/2025 | |
| 9.0.10 | 448,977 | 10/14/2025 | |
| 9.0.9 | 1,153,975 | 9/9/2025 | |
| 9.0.8 | 545,956 | 8/5/2025 | |
| 9.0.7 | 963,122 | 7/8/2025 | |
| 9.0.6 | 575,087 | 6/10/2025 | |
| 9.0.5 | 665,340 | 5/13/2025 | |
| 9.0.4 | 1,353,822 | 4/8/2025 | |
| 9.0.3 | 660,829 | 3/11/2025 | |
| 9.0.2 | 856,862 | 2/11/2025 | |
| 9.0.1 | 576,417 | 1/14/2025 | |
| 9.0.0 | 1,037,004 | 11/12/2024 | |
| 9.0.0-rc.2.24474.3 | 18,685 | 10/8/2024 | |
| 9.0.0-rc.1.24452.1 | 4,927 | 9/10/2024 | |
| 9.0.0-preview.7.24406.2 | 765 | 8/13/2024 | |
| 9.0.0-preview.6.24328.4 | 1,386 | 7/9/2024 | |
| 9.0.0-preview.5.24306.11 | 581 | 6/11/2024 | |
| 9.0.0-preview.4.24267.6 | 401 | 5/21/2024 | |
| 9.0.0-preview.3.24172.13 | 73,451 | 4/11/2024 | |
| 9.0.0-preview.2.24128.4 | 1,382 | 3/12/2024 | |
| 9.0.0-preview.1.24081.5 | 21,070 | 2/13/2024 | |
| 8.0.22 | 96,394 | 11/11/2025 | |
| 8.0.21 | 213,090 | 10/14/2025 | |
| 8.0.20 | 358,515 | 9/9/2025 | |
| 8.0.19 | 342,591 | 8/4/2025 | |
| 8.0.18 | 313,652 | 7/8/2025 | |
| 8.0.17 | 497,713 | 6/10/2025 | |
| 8.0.16 | 386,589 | 5/13/2025 | |
| 8.0.15 | 821,340 | 4/8/2025 | |
| 8.0.14 | 1,440,129 | 3/11/2025 | |
| 8.0.13 | 697,944 | 2/11/2025 | |
| 8.0.12 | 1,038,551 | 1/14/2025 | |
| 8.0.11 | 3,218,163 | 11/12/2024 | |
| 8.0.10 | 3,005,507 | 10/8/2024 | |
| 8.0.8 | 3,090,953 | 8/13/2024 | |
| 8.0.7 | 2,165,930 | 7/9/2024 | |
| 8.0.6 | 1,981,661 | 5/28/2024 | |
| 8.0.5 | 798,903 | 5/14/2024 | |
| 8.0.4 | 2,277,024 | 4/9/2024 | |
| 8.0.3 | 1,369,366 | 3/12/2024 | |
| 8.0.2 | 1,565,644 | 2/13/2024 | |
| 8.0.1 | 1,891,505 | 1/9/2024 | |
| 8.0.0 | 3,049,230 | 11/14/2023 | |
| 8.0.0-rc.2.23480.2 | 17,448 | 10/10/2023 | |
| 8.0.0-rc.1.23421.29 | 13,636 | 9/12/2023 | |
| 8.0.0-preview.7.23375.9 | 18,648 | 8/8/2023 | |
| 8.0.0-preview.6.23329.11 | 7,010 | 7/11/2023 | |
| 8.0.0-preview.5.23302.2 | 3,547 | 6/13/2023 | |
| 8.0.0-preview.4.23260.4 | 871 | 5/16/2023 | |
| 8.0.0-preview.3.23177.8 | 2,638 | 4/11/2023 | |
| 8.0.0-preview.2.23153.2 | 583 | 3/14/2023 | |
| 8.0.0-preview.1.23112.2 | 51,227 | 2/21/2023 | |
| 7.0.20 | 225,645 | 5/28/2024 | |
| 7.0.19 | 29,230 | 5/14/2024 | |
| 7.0.18 | 97,775 | 4/9/2024 | |
| 7.0.17 | 293,128 | 3/12/2024 | |
| 7.0.16 | 239,418 | 2/13/2024 | |
| 7.0.15 | 256,209 | 1/9/2024 | |
| 7.0.14 | 560,934 | 11/14/2023 | |
| 7.0.13 | 445,991 | 10/24/2023 | |
| 7.0.12 | 368,383 | 10/10/2023 | |
| 7.0.11 | 611,226 | 9/12/2023 | |
| 7.0.10 | 546,994 | 8/8/2023 | |
| 7.0.9 | 499,863 | 7/11/2023 | |
| 7.0.8 | 645,194 | 6/22/2023 | |
| 7.0.7 | 256,435 | 6/13/2023 | |
| 7.0.5 | 1,529,295 | 4/11/2023 | |
| 7.0.4 | 512,435 | 3/14/2023 | |
| 7.0.3 | 860,354 | 2/14/2023 | |
| 7.0.2 | 724,041 | 1/10/2023 | |
| 7.0.1 | 266,469 | 12/13/2022 | |
| 7.0.0 | 421,053 | 11/7/2022 | |
| 7.0.0-rc.2.22476.2 | 4,528 | 10/11/2022 | |
| 7.0.0-rc.1.22427.2 | 2,894 | 9/14/2022 | |
| 7.0.0-preview.7.22376.6 | 2,977 | 8/9/2022 | |
| 7.0.0-preview.6.22330.3 | 1,346 | 7/12/2022 | |
| 7.0.0-preview.5.22303.8 | 964 | 6/14/2022 | |
| 7.0.0-preview.4.22251.1 | 4,408 | 5/10/2022 | |
| 7.0.0-preview.3.22178.4 | 2,674 | 4/13/2022 | |
| 7.0.0-preview.2.22153.2 | 540 | 3/14/2022 | |
| 7.0.0-preview.1.22109.13 | 644 | 2/17/2022 | |
| 6.0.36 | 250,096 | 11/12/2024 | |
| 6.0.35 | 112,287 | 10/8/2024 | |
| 6.0.33 | 146,905 | 8/13/2024 | |
| 6.0.32 | 166,355 | 7/9/2024 | |
| 6.0.31 | 140,084 | 5/28/2024 | |
| 6.0.30 | 70,856 | 5/14/2024 | |
| 6.0.29 | 226,287 | 4/9/2024 | |
| 6.0.28 | 154,654 | 3/12/2024 | |
| 6.0.27 | 323,063 | 2/13/2024 | |
| 6.0.26 | 372,887 | 1/9/2024 | |
| 6.0.25 | 615,149 | 11/14/2023 | |
| 6.0.24 | 291,183 | 10/24/2023 | |
| 6.0.23 | 180,879 | 10/10/2023 | |
| 6.0.22 | 464,723 | 9/12/2023 | |
| 6.0.21 | 499,379 | 8/8/2023 | |
| 6.0.20 | 417,316 | 7/11/2023 | |
| 6.0.19 | 285,327 | 6/22/2023 | |
| 6.0.18 | 165,170 | 6/13/2023 | |
| 6.0.16 | 1,102,253 | 4/11/2023 | |
| 6.0.15 | 762,406 | 3/14/2023 | |
| 6.0.14 | 557,992 | 2/14/2023 | |
| 6.0.13 | 898,854 | 1/10/2023 | |
| 6.0.12 | 854,292 | 12/13/2022 | |
| 6.0.11 | 960,244 | 11/7/2022 | |
| 6.0.10 | 1,957,870 | 10/11/2022 | |
| 6.0.9 | 1,358,683 | 9/13/2022 | |
| 6.0.8 | 1,605,533 | 8/9/2022 | |
| 6.0.7 | 1,687,859 | 7/12/2022 | |
| 6.0.6 | 1,502,054 | 6/14/2022 | |
| 6.0.5 | 1,912,642 | 5/10/2022 | |
| 6.0.4 | 933,112 | 4/11/2022 | |
| 6.0.3 | 1,678,731 | 3/8/2022 | |
| 6.0.2 | 871,237 | 2/8/2022 | |
| 6.0.1 | 1,727,697 | 12/14/2021 | |
| 6.0.0 | 1,683,692 | 11/8/2021 | |
| 6.0.0-rc.2.21480.10 | 11,777 | 10/12/2021 | |
| 6.0.0-rc.1.21452.15 | 5,643 | 9/14/2021 | |
| 6.0.0-preview.7.21378.6 | 11,723 | 8/10/2021 | |
| 6.0.0-preview.6.21355.2 | 1,565 | 7/14/2021 | |
| 6.0.0-preview.5.21301.17 | 17,203 | 6/15/2021 | |
| 6.0.0-preview.4.21253.5 | 1,101 | 5/24/2021 | |
| 6.0.0-preview.3.21201.13 | 1,325 | 4/8/2021 | |
| 6.0.0-preview.2.21154.6 | 1,085 | 3/11/2021 | |
| 6.0.0-preview.1.21103.6 | 1,423 | 2/12/2021 | |
| 5.0.17 | 548,439 | 5/10/2022 | |
| 5.0.16 | 203,719 | 4/11/2022 | |
| 5.0.15 | 120,616 | 3/8/2022 | |
| 5.0.14 | 85,744 | 2/8/2022 | |
| 5.0.13 | 239,621 | 12/14/2021 | |
| 5.0.12 | 348,633 | 11/7/2021 | |
| 5.0.11 | 805,748 | 10/12/2021 | |
| 5.0.10 | 556,189 | 9/14/2021 | |
| 5.0.9 | 606,252 | 8/10/2021 | |
| 5.0.8 | 396,334 | 7/13/2021 | |
| 5.0.7 | 843,450 | 6/8/2021 | |
| 5.0.6 | 668,691 | 5/11/2021 | |
| 5.0.5 | 871,562 | 4/6/2021 | |
| 5.0.4 | 360,898 | 3/9/2021 | |
| 5.0.3 | 436,326 | 2/9/2021 | |
| 5.0.2 | 544,566 | 1/12/2021 | |
| 5.0.1 | 541,038 | 12/8/2020 | |
| 5.0.0 | 566,594 | 11/9/2020 | |
| 5.0.0-rc.2.20475.17 | 5,150 | 10/13/2020 | |
| 5.0.0-rc.1.20451.17 | 4,298 | 9/14/2020 | |
| 5.0.0-preview.8.20414.8 | 3,229 | 8/25/2020 | |
| 5.0.0-preview.7.20365.19 | 1,581 | 7/21/2020 | |
| 5.0.0-preview.6.20312.15 | 1,056 | 6/25/2020 | |
| 5.0.0-preview.5.20279.2 | 1,628 | 6/10/2020 | |
| 5.0.0-preview.4.20257.10 | 1,166 | 5/18/2020 | |
| 5.0.0-preview.3.20215.14 | 1,084 | 4/23/2020 | |
| 5.0.0-preview.2.20167.3 | 1,262 | 4/2/2020 | |
| 5.0.0-preview.1.20124.5 | 4,075 | 3/16/2020 | |
| 3.1.32 | 180,862 | 12/13/2022 | |
| 3.1.31 | 20,072 | 11/8/2022 | |
| 3.1.30 | 29,027 | 10/11/2022 | |
| 3.1.29 | 25,937 | 9/13/2022 | |
| 3.1.28 | 29,643 | 8/9/2022 | |
| 3.1.27 | 58,291 | 7/12/2022 | |
| 3.1.26 | 43,053 | 6/14/2022 | |
| 3.1.25 | 46,475 | 5/10/2022 | |
| 3.1.24 | 59,543 | 4/11/2022 | |
| 3.1.23 | 92,298 | 3/8/2022 | |
| 3.1.22 | 225,108 | 12/14/2021 | |
| 3.1.21 | 98,418 | 11/7/2021 | |
| 3.1.20 | 56,819 | 10/11/2021 | |
| 3.1.19 | 91,784 | 9/14/2021 | |
| 3.1.18 | 163,196 | 8/10/2021 | |
| 3.1.17 | 182,611 | 7/13/2021 | |
| 3.1.16 | 229,465 | 6/8/2021 | |
| 3.1.15 | 132,659 | 5/11/2021 | |
| 3.1.14 | 82,730 | 4/6/2021 | |
| 3.1.13 | 142,887 | 3/9/2021 | |
| 3.1.12 | 261,770 | 2/9/2021 | |
| 3.1.11 | 171,121 | 1/12/2021 | |
| 3.1.10 | 543,468 | 11/9/2020 | |
| 3.1.9 | 927,587 | 10/13/2020 | |
| 3.1.8 | 878,175 | 9/8/2020 | |
| 3.1.7 | 512,713 | 8/11/2020 | |
| 3.1.6 | 487,953 | 7/14/2020 | |
| 3.1.5 | 541,345 | 6/9/2020 | |
| 3.1.4 | 570,859 | 5/12/2020 | |
| 3.1.3 | 776,212 | 3/24/2020 | |
| 3.1.2 | 646,763 | 2/18/2020 | |
| 3.1.1 | 622,366 | 1/14/2020 | |
| 3.1.0 | 739,763 | 12/3/2019 | |
| 3.1.0-preview3.19555.2 | 2,753 | 11/13/2019 | |
| 3.1.0-preview2.19528.8 | 806 | 11/1/2019 | |
| 3.1.0-preview1.19508.20 | 1,007 | 10/15/2019 | |
| 3.0.3 | 22,069 | 2/18/2020 | |
| 3.0.2 | 16,450 | 1/14/2020 | |
| 3.0.0 | 289,772 | 9/23/2019 | |
| 3.0.0-rc1.19457.4 | 1,662 | 9/16/2019 | |
| 3.0.0-preview9.19424.4 | 1,678 | 9/4/2019 | |
| 3.0.0-preview8.19405.7 | 21,154 | 8/13/2019 | |
| 3.0.0-preview7.19365.7 | 1,483 | 7/23/2019 | |
| 3.0.0-preview6.19307.2 | 1,388 | 6/12/2019 | |
| 3.0.0-preview5-19227-01 | 104,425 | 5/6/2019 | |
| 3.0.0-preview4-19216-03 | 1,390 | 4/18/2019 | |
| 3.0.0-preview3-19153-02 | 866 | 3/6/2019 | |
| 3.0.0-preview-19075-0444 | 868 | 1/29/2019 | |
| 3.0.0-preview-18579-0056 | 855 | 12/3/2018 | |
| 2.2.0 | 3,093,331 | 12/3/2018 | |
| 2.2.0-preview3-35497 | 5,016 | 10/17/2018 |