Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore
                                
                            
                                10.0.0-preview.5.25266.103
                            
                        
                            
                                
                                
                                    Prefix Reserved
                                
                            
                    See the version list below for details.
dotnet add package Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore --version 10.0.0-preview.5.25266.103
NuGet\Install-Package Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore -Version 10.0.0-preview.5.25266.103
<PackageReference Include="Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore" Version="10.0.0-preview.5.25266.103" />
<PackageVersion Include="Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore" Version="10.0.0-preview.5.25266.103" />
<PackageReference Include="Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore" />
paket add Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore --version 10.0.0-preview.5.25266.103
#r "nuget: Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore, 10.0.0-preview.5.25266.103"
#:package Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore@10.0.0-preview.5.25266.103
#addin nuget:?package=Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore&version=10.0.0-preview.5.25266.103&prerelease
#tool nuget:?package=Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore&version=10.0.0-preview.5.25266.103&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-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.0-preview.4.25266.103)
 - Microsoft.Extensions.Diagnostics.HealthChecks (>= 10.0.0-preview.5.25266.103)
 - Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions (>= 10.0.0-preview.5.25266.103)
 
 
GitHub repositories (55)
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.
                                                         
                                                     | 
                                                    |
| 
                                                        
                                                            dotnet/aspire
                                                        
                                                         
                                                            Aspire is the tool for code-first, extensible, observable dev and deploy.
                                                         
                                                     | 
                                                    |
| 
                                                        
                                                            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: 
                                                         
                                                     | 
                                                    |
| 
                                                        
                                                            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
                                                         
                                                     | 
                                                    |
| 
                                                        
                                                            dotnet-presentations/aspnetcore-app-workshop
                                                        
                                                         
                                                            This workshop will teach you ASP.NET Core by building a complete conference management website from scratch.
                                                         
                                                     | 
                                                    
| Version | Downloads | Last Updated | 
|---|---|---|
| 10.0.0-rc.2.25466.103 | 0 | 9/22/2025 | 
| 10.0.0-rc.1.25451.107 | 0 | 9/22/2025 | 
| 10.0.0-rc.1.25421.113 | 0 | 9/12/2025 | 
| 10.0.0-preview.7.25380.108 | 0 | 8/11/2025 | 
| 10.0.0-preview.7.25380.105 | 0 | 8/6/2025 | 
| 10.0.0-preview.6.25358.103 | 0 | 7/17/2025 | 
| 10.0.0-preview.6.25321.102 | 0 | 6/25/2025 | 
| 10.0.0-preview.5.25280.105 | 0 | 6/2/2025 | 
| 10.0.0-preview.5.25277.114 | 0 | 6/3/2025 | 
| 10.0.0-preview.5.25277.101 | 0 | 5/29/2025 | 
| 10.0.0-preview.5.25266.103 | 0 | 5/20/2025 | 
| 10.0.0-preview.4.25255.103 | 0 | 5/12/2025 | 
| 9.0.10 | 0 | 9/25/2025 | 
| 9.0.7 | 0 | 7/11/2025 | 
| 3.0.0-preview-19075-0444 | 2 | 1/28/2019 | 
| 3.0.0-preview-18579-0056 | 1 | 11/30/2018 | 
| 3.0.0-preview-18579-0053 | 1 | 11/30/2018 |