Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore
10.0.2
Prefix Reserved
dotnet add package Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore --version 10.0.2
NuGet\Install-Package Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore -Version 10.0.2
<PackageReference Include="Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore" Version="10.0.2" />
<PackageVersion Include="Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore" Version="10.0.2" />
<PackageReference Include="Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore" />
paket add Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore --version 10.0.2
#r "nuget: Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore, 10.0.2"
#:package Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore@10.0.2
#addin nuget:?package=Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore&version=10.0.2
#tool nuget:?package=Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore&version=10.0.2
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.2)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 10.0.2)
- Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions (>= 10.0.2)
NuGet packages (126)
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. |
|
|
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.Database
Package Description |
|
|
Reo.Core.Testing
Package Description |
|
|
FenixAlliance.ACL.Dependencies
Application Component for the Alliance Business Suite. |
GitHub repositories (57)
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.2 | 140,812 | 1/13/2026 | |
| 10.0.1 | 461,050 | 12/9/2025 | |
| 10.0.0 | 686,749 | 11/11/2025 | |
| 10.0.0-rc.2.25502.107 | 11,440 | 10/14/2025 | |
| 10.0.0-rc.1.25451.107 | 15,413 | 9/9/2025 | |
| 10.0.0-preview.7.25380.108 | 1,839 | 8/12/2025 | |
| 10.0.0-preview.6.25358.103 | 593 | 7/15/2025 | |
| 10.0.0-preview.5.25277.114 | 1,441 | 6/6/2025 | |
| 10.0.0-preview.4.25258.110 | 772 | 5/12/2025 | |
| 10.0.0-preview.3.25172.1 | 526 | 4/10/2025 | |
| 10.0.0-preview.2.25164.1 | 474 | 3/18/2025 | |
| 10.0.0-preview.1.25120.3 | 764 | 2/25/2025 | |
| 9.0.12 | 35,408 | 1/13/2026 | |
| 9.0.11 | 373,938 | 11/11/2025 | |
| 9.0.10 | 630,560 | 10/14/2025 | |
| 9.0.9 | 1,513,314 | 9/9/2025 | |
| 9.0.8 | 614,888 | 8/5/2025 | |
| 9.0.7 | 1,043,143 | 7/8/2025 | |
| 9.0.6 | 629,908 | 6/10/2025 | |
| 9.0.5 | 712,600 | 5/13/2025 | |
| 9.0.4 | 1,437,642 | 4/8/2025 | |
| 9.0.3 | 708,002 | 3/11/2025 | |
| 9.0.2 | 918,258 | 2/11/2025 | |
| 9.0.1 | 614,711 | 1/14/2025 | |
| 9.0.0 | 1,162,571 | 11/12/2024 | |
| 9.0.0-rc.2.24474.3 | 18,817 | 10/8/2024 | |
| 9.0.0-rc.1.24452.1 | 4,958 | 9/10/2024 | |
| 9.0.0-preview.7.24406.2 | 796 | 8/13/2024 | |
| 9.0.0-preview.6.24328.4 | 1,435 | 7/9/2024 | |
| 9.0.0-preview.5.24306.11 | 601 | 6/11/2024 | |
| 9.0.0-preview.4.24267.6 | 461 | 5/21/2024 | |
| 9.0.0-preview.3.24172.13 | 73,481 | 4/11/2024 | |
| 9.0.0-preview.2.24128.4 | 1,398 | 3/12/2024 | |
| 9.0.0-preview.1.24081.5 | 21,097 | 2/13/2024 | |
| 8.0.23 | 41,719 | 1/13/2026 | |
| 8.0.22 | 317,581 | 11/11/2025 | |
| 8.0.21 | 303,005 | 10/14/2025 | |
| 8.0.20 | 463,878 | 9/9/2025 | |
| 8.0.19 | 406,723 | 8/4/2025 | |
| 8.0.18 | 384,971 | 7/8/2025 | |
| 8.0.17 | 580,014 | 6/10/2025 | |
| 8.0.16 | 436,220 | 5/13/2025 | |
| 8.0.15 | 925,015 | 4/8/2025 | |
| 8.0.14 | 1,663,323 | 3/11/2025 | |
| 8.0.13 | 771,798 | 2/11/2025 | |
| 8.0.12 | 1,167,281 | 1/14/2025 | |
| 8.0.11 | 3,472,678 | 11/12/2024 | |
| 8.0.10 | 3,216,692 | 10/8/2024 | |
| 8.0.8 | 3,252,966 | 8/13/2024 | |
| 8.0.7 | 2,278,606 | 7/9/2024 | |
| 8.0.6 | 2,061,129 | 5/28/2024 | |
| 8.0.5 | 848,051 | 5/14/2024 | |
| 8.0.4 | 2,349,781 | 4/9/2024 | |
| 8.0.3 | 1,424,486 | 3/12/2024 | |
| 8.0.2 | 1,626,432 | 2/13/2024 | |
| 8.0.1 | 1,997,995 | 1/9/2024 | |
| 8.0.0 | 3,267,866 | 11/14/2023 | |
| 8.0.0-rc.2.23480.2 | 17,486 | 10/10/2023 | |
| 8.0.0-rc.1.23421.29 | 13,871 | 9/12/2023 | |
| 8.0.0-preview.7.23375.9 | 18,810 | 8/8/2023 | |
| 8.0.0-preview.6.23329.11 | 7,075 | 7/11/2023 | |
| 8.0.0-preview.5.23302.2 | 3,585 | 6/13/2023 | |
| 8.0.0-preview.4.23260.4 | 895 | 5/16/2023 | |
| 8.0.0-preview.3.23177.8 | 2,676 | 4/11/2023 | |
| 8.0.0-preview.2.23153.2 | 601 | 3/14/2023 | |
| 8.0.0-preview.1.23112.2 | 51,244 | 2/21/2023 | |
| 7.0.20 | 242,527 | 5/28/2024 | |
| 7.0.19 | 35,189 | 5/14/2024 | |
| 7.0.18 | 104,724 | 4/9/2024 | |
| 7.0.17 | 300,656 | 3/12/2024 | |
| 7.0.16 | 248,701 | 2/13/2024 | |
| 7.0.15 | 264,035 | 1/9/2024 | |
| 7.0.14 | 571,717 | 11/14/2023 | |
| 7.0.13 | 455,099 | 10/24/2023 | |
| 7.0.12 | 377,294 | 10/10/2023 | |
| 7.0.11 | 618,925 | 9/12/2023 | |
| 7.0.10 | 556,148 | 8/8/2023 | |
| 7.0.9 | 508,164 | 7/11/2023 | |
| 7.0.8 | 655,150 | 6/22/2023 | |
| 7.0.7 | 264,644 | 6/13/2023 | |
| 7.0.5 | 1,539,741 | 4/11/2023 | |
| 7.0.4 | 520,824 | 3/14/2023 | |
| 7.0.3 | 901,226 | 2/14/2023 | |
| 7.0.2 | 738,326 | 1/10/2023 | |
| 7.0.1 | 273,165 | 12/13/2022 | |
| 7.0.0 | 430,366 | 11/7/2022 | |
| 7.0.0-rc.2.22476.2 | 4,564 | 10/11/2022 | |
| 7.0.0-rc.1.22427.2 | 2,916 | 9/14/2022 | |
| 7.0.0-preview.7.22376.6 | 2,998 | 8/9/2022 | |
| 7.0.0-preview.6.22330.3 | 1,370 | 7/12/2022 | |
| 7.0.0-preview.5.22303.8 | 992 | 6/14/2022 | |
| 7.0.0-preview.4.22251.1 | 4,432 | 5/10/2022 | |
| 7.0.0-preview.3.22178.4 | 2,693 | 4/13/2022 | |
| 7.0.0-preview.2.22153.2 | 566 | 3/14/2022 | |
| 7.0.0-preview.1.22109.13 | 671 | 2/17/2022 | |
| 6.0.36 | 289,091 | 11/12/2024 | |
| 6.0.35 | 120,997 | 10/8/2024 | |
| 6.0.33 | 156,015 | 8/13/2024 | |
| 6.0.32 | 178,739 | 7/9/2024 | |
| 6.0.31 | 147,947 | 5/28/2024 | |
| 6.0.30 | 80,916 | 5/14/2024 | |
| 6.0.29 | 235,071 | 4/9/2024 | |
| 6.0.28 | 163,399 | 3/12/2024 | |
| 6.0.27 | 334,287 | 2/13/2024 | |
| 6.0.26 | 381,307 | 1/9/2024 | |
| 6.0.25 | 626,394 | 11/14/2023 | |
| 6.0.24 | 300,489 | 10/24/2023 | |
| 6.0.23 | 188,076 | 10/10/2023 | |
| 6.0.22 | 474,999 | 9/12/2023 | |
| 6.0.21 | 514,999 | 8/8/2023 | |
| 6.0.20 | 434,194 | 7/11/2023 | |
| 6.0.19 | 293,998 | 6/22/2023 | |
| 6.0.18 | 171,995 | 6/13/2023 | |
| 6.0.16 | 1,118,156 | 4/11/2023 | |
| 6.0.15 | 782,014 | 3/14/2023 | |
| 6.0.14 | 567,680 | 2/14/2023 | |
| 6.0.13 | 911,424 | 1/10/2023 | |
| 6.0.12 | 870,219 | 12/13/2022 | |
| 6.0.11 | 973,696 | 11/7/2022 | |
| 6.0.10 | 1,972,810 | 10/11/2022 | |
| 6.0.9 | 1,375,212 | 9/13/2022 | |
| 6.0.8 | 1,619,318 | 8/9/2022 | |
| 6.0.7 | 1,700,676 | 7/12/2022 | |
| 6.0.6 | 1,514,772 | 6/14/2022 | |
| 6.0.5 | 1,929,306 | 5/10/2022 | |
| 6.0.4 | 942,555 | 4/11/2022 | |
| 6.0.3 | 1,695,308 | 3/8/2022 | |
| 6.0.2 | 879,897 | 2/8/2022 | |
| 6.0.1 | 1,744,737 | 12/14/2021 | |
| 6.0.0 | 1,705,671 | 11/8/2021 | |
| 6.0.0-rc.2.21480.10 | 11,800 | 10/12/2021 | |
| 6.0.0-rc.1.21452.15 | 5,664 | 9/14/2021 | |
| 6.0.0-preview.7.21378.6 | 11,740 | 8/10/2021 | |
| 6.0.0-preview.6.21355.2 | 1,593 | 7/14/2021 | |
| 6.0.0-preview.5.21301.17 | 17,229 | 6/15/2021 | |
| 6.0.0-preview.4.21253.5 | 1,126 | 5/24/2021 | |
| 6.0.0-preview.3.21201.13 | 1,348 | 4/8/2021 | |
| 6.0.0-preview.2.21154.6 | 1,119 | 3/11/2021 | |
| 6.0.0-preview.1.21103.6 | 1,454 | 2/12/2021 | |
| 5.0.17 | 561,979 | 5/10/2022 | |
| 5.0.16 | 212,025 | 4/11/2022 | |
| 5.0.15 | 126,740 | 3/8/2022 | |
| 5.0.14 | 91,507 | 2/8/2022 | |
| 5.0.13 | 245,999 | 12/14/2021 | |
| 5.0.12 | 355,580 | 11/7/2021 | |
| 5.0.11 | 812,467 | 10/12/2021 | |
| 5.0.10 | 563,541 | 9/14/2021 | |
| 5.0.9 | 612,927 | 8/10/2021 | |
| 5.0.8 | 402,761 | 7/13/2021 | |
| 5.0.7 | 851,989 | 6/8/2021 | |
| 5.0.6 | 681,349 | 5/11/2021 | |
| 5.0.5 | 879,260 | 4/6/2021 | |
| 5.0.4 | 367,177 | 3/9/2021 | |
| 5.0.3 | 443,607 | 2/9/2021 | |
| 5.0.2 | 551,221 | 1/12/2021 | |
| 5.0.1 | 547,891 | 12/8/2020 | |
| 5.0.0 | 572,948 | 11/9/2020 | |
| 5.0.0-rc.2.20475.17 | 5,196 | 10/13/2020 | |
| 5.0.0-rc.1.20451.17 | 4,332 | 9/14/2020 | |
| 5.0.0-preview.8.20414.8 | 3,263 | 8/25/2020 | |
| 5.0.0-preview.7.20365.19 | 1,619 | 7/21/2020 | |
| 5.0.0-preview.6.20312.15 | 1,083 | 6/25/2020 | |
| 5.0.0-preview.5.20279.2 | 1,664 | 6/10/2020 | |
| 5.0.0-preview.4.20257.10 | 1,198 | 5/18/2020 | |
| 5.0.0-preview.3.20215.14 | 1,116 | 4/23/2020 | |
| 5.0.0-preview.2.20167.3 | 1,297 | 4/2/2020 | |
| 5.0.0-preview.1.20124.5 | 4,121 | 3/16/2020 | |
| 3.1.32 | 190,382 | 12/13/2022 | |
| 3.1.31 | 25,787 | 11/8/2022 | |
| 3.1.30 | 34,736 | 10/11/2022 | |
| 3.1.29 | 31,617 | 9/13/2022 | |
| 3.1.28 | 35,403 | 8/9/2022 | |
| 3.1.27 | 64,024 | 7/12/2022 | |
| 3.1.26 | 49,209 | 6/14/2022 | |
| 3.1.25 | 52,402 | 5/10/2022 | |
| 3.1.24 | 65,227 | 4/11/2022 | |
| 3.1.23 | 98,088 | 3/8/2022 | |
| 3.1.22 | 233,879 | 12/14/2021 | |
| 3.1.21 | 104,299 | 11/7/2021 | |
| 3.1.20 | 62,632 | 10/11/2021 | |
| 3.1.19 | 97,503 | 9/14/2021 | |
| 3.1.18 | 169,297 | 8/10/2021 | |
| 3.1.17 | 189,613 | 7/13/2021 | |
| 3.1.16 | 235,272 | 6/8/2021 | |
| 3.1.15 | 138,638 | 5/11/2021 | |
| 3.1.14 | 88,558 | 4/6/2021 | |
| 3.1.13 | 149,518 | 3/9/2021 | |
| 3.1.12 | 267,738 | 2/9/2021 | |
| 3.1.11 | 177,275 | 1/12/2021 | |
| 3.1.10 | 550,193 | 11/9/2020 | |
| 3.1.9 | 944,818 | 10/13/2020 | |
| 3.1.8 | 885,019 | 9/8/2020 | |
| 3.1.7 | 520,086 | 8/11/2020 | |
| 3.1.6 | 494,707 | 7/14/2020 | |
| 3.1.5 | 547,586 | 6/9/2020 | |
| 3.1.4 | 577,386 | 5/12/2020 | |
| 3.1.3 | 782,852 | 3/24/2020 | |
| 3.1.2 | 653,384 | 2/18/2020 | |
| 3.1.1 | 630,066 | 1/14/2020 | |
| 3.1.0 | 747,410 | 12/3/2019 | |
| 3.1.0-preview3.19555.2 | 2,786 | 11/13/2019 | |
| 3.1.0-preview2.19528.8 | 838 | 11/1/2019 | |
| 3.1.0-preview1.19508.20 | 1,038 | 10/15/2019 | |
| 3.0.3 | 27,927 | 2/18/2020 | |
| 3.0.2 | 22,132 | 1/14/2020 | |
| 3.0.0 | 295,750 | 9/23/2019 | |
| 3.0.0-rc1.19457.4 | 1,695 | 9/16/2019 | |
| 3.0.0-preview9.19424.4 | 1,710 | 9/4/2019 | |
| 3.0.0-preview8.19405.7 | 21,182 | 8/13/2019 | |
| 3.0.0-preview7.19365.7 | 1,510 | 7/23/2019 | |
| 3.0.0-preview6.19307.2 | 1,424 | 6/12/2019 | |
| 3.0.0-preview5-19227-01 | 104,454 | 5/6/2019 | |
| 3.0.0-preview4-19216-03 | 1,422 | 4/18/2019 | |
| 3.0.0-preview3-19153-02 | 900 | 3/6/2019 | |
| 3.0.0-preview-19075-0444 | 900 | 1/29/2019 | |
| 3.0.0-preview-18579-0056 | 895 | 12/3/2018 | |
| 2.2.0 | 3,117,093 | 12/3/2018 | |
| 2.2.0-preview3-35497 | 5,299 | 10/17/2018 |