Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore
11.0.0-preview.2.26159.112
Prefix Reserved
dotnet add package Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore --version 11.0.0-preview.2.26159.112
NuGet\Install-Package Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore -Version 11.0.0-preview.2.26159.112
<PackageReference Include="Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore" Version="11.0.0-preview.2.26159.112" />
<PackageVersion Include="Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore" Version="11.0.0-preview.2.26159.112" />
<PackageReference Include="Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore" />
paket add Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore --version 11.0.0-preview.2.26159.112
#r "nuget: Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore, 11.0.0-preview.2.26159.112"
#:package Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore@11.0.0-preview.2.26159.112
#addin nuget:?package=Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore&version=11.0.0-preview.2.26159.112&prerelease
#tool nuget:?package=Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore&version=11.0.0-preview.2.26159.112&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 | net11.0 is compatible. |
-
net11.0
- Microsoft.EntityFrameworkCore.Relational (>= 11.0.0-preview.2.26159.112)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 11.0.0-preview.2.26159.112)
- Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions (>= 11.0.0-preview.2.26159.112)
NuGet packages (131)
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 |
|
|
Reo.Core.IntegrationTesting
Package Description |
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
|
|
|
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 ❤️
|
|
|
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.
|
|
|
CodeMazeBlog/CodeMazeGuides
The main repository for all the Code Maze guides
|
|
|
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
|
|
|
skoruba/Duende.IdentityServer.Admin
Modern admin UI for Duende IdentityServer and ASP.NET Core Identity 🚀
|
| Version | Downloads | Last Updated |
|---|---|---|
| 11.0.0-preview.2.26159.112 | 93 | 3/10/2026 |
| 11.0.0-preview.1.26104.118 | 294 | 2/10/2026 |
| 10.0.5 | 17,933 | 3/12/2026 |
| 10.0.4 | 22,986 | 3/10/2026 |
| 10.0.3 | 414,476 | 2/10/2026 |
| 10.0.2 | 615,370 | 1/13/2026 |
| 10.0.1 | 1,067,678 | 12/9/2025 |
| 10.0.0 | 1,087,947 | 11/11/2025 |
| 10.0.0-rc.2.25502.107 | 12,364 | 10/14/2025 |
| 9.0.14 | 6,334 | 3/10/2026 |
| 9.0.13 | 63,090 | 2/10/2026 |
| 9.0.12 | 111,417 | 1/13/2026 |
| 9.0.11 | 513,667 | 11/11/2025 |
| 9.0.10 | 761,131 | 10/14/2025 |
| 9.0.9 | 1,796,364 | 9/9/2025 |
| 8.0.25 | 10,038 | 3/10/2026 |
| 8.0.24 | 85,458 | 2/10/2026 |
| 8.0.23 | 137,365 | 1/13/2026 |
| 8.0.22 | 478,478 | 11/11/2025 |
| 8.0.21 | 355,774 | 10/14/2025 |