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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore" Version="10.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore" Version="10.0.1" />
                    
Directory.Packages.props
<PackageReference Include="Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore --version 10.0.1
                    
#r "nuget: Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore, 10.0.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore@10.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore&version=10.0.1
                    
Install as a Cake Addin
#tool nuget:?package=Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore&version=10.0.1
                    
Install as a Cake Tool

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (125)

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 (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 193,801 12/9/2025
10.0.0 490,174 11/11/2025
10.0.0-rc.2.25502.107 11,302 10/14/2025
10.0.0-rc.1.25451.107 15,383 9/9/2025
10.0.0-preview.7.25380.108 1,816 8/12/2025
10.0.0-preview.6.25358.103 563 7/15/2025
10.0.0-preview.5.25277.114 1,377 6/6/2025
10.0.0-preview.4.25258.110 731 5/12/2025
10.0.0-preview.3.25172.1 517 4/10/2025
10.0.0-preview.2.25164.1 459 3/18/2025
10.0.0-preview.1.25120.3 690 2/25/2025
9.0.11 254,820 11/11/2025
9.0.10 549,293 10/14/2025
9.0.9 1,352,758 9/9/2025
9.0.8 583,905 8/5/2025
9.0.7 1,008,442 7/8/2025
9.0.6 603,047 6/10/2025
9.0.5 689,965 5/13/2025
9.0.4 1,399,286 4/8/2025
9.0.3 683,986 3/11/2025
9.0.2 887,200 2/11/2025
9.0.1 596,936 1/14/2025
9.0.0 1,108,203 11/12/2024
9.0.0-rc.2.24474.3 18,745 10/8/2024
9.0.0-rc.1.24452.1 4,943 9/10/2024
9.0.0-preview.7.24406.2 789 8/13/2024
9.0.0-preview.6.24328.4 1,417 7/9/2024
9.0.0-preview.5.24306.11 595 6/11/2024
9.0.0-preview.4.24267.6 447 5/21/2024
9.0.0-preview.3.24172.13 73,468 4/11/2024
9.0.0-preview.2.24128.4 1,389 3/12/2024
9.0.0-preview.1.24081.5 21,087 2/13/2024
8.0.22 216,069 11/11/2025
8.0.21 262,890 10/14/2025
8.0.20 414,830 9/9/2025
8.0.19 374,729 8/4/2025
8.0.18 349,723 7/8/2025
8.0.17 541,662 6/10/2025
8.0.16 413,691 5/13/2025
8.0.15 876,004 4/8/2025
8.0.14 1,549,229 3/11/2025
8.0.13 739,945 2/11/2025
8.0.12 1,103,923 1/14/2025
8.0.11 3,353,394 11/12/2024
8.0.10 3,117,235 10/8/2024
8.0.8 3,175,896 8/13/2024
8.0.7 2,229,290 7/9/2024
8.0.6 2,025,062 5/28/2024
8.0.5 827,539 5/14/2024
8.0.4 2,316,103 4/9/2024
8.0.3 1,397,629 3/12/2024
8.0.2 1,599,454 2/13/2024
8.0.1 1,947,064 1/9/2024
8.0.0 3,160,658 11/14/2023
8.0.0-rc.2.23480.2 17,467 10/10/2023
8.0.0-rc.1.23421.29 13,735 9/12/2023
8.0.0-preview.7.23375.9 18,747 8/8/2023
8.0.0-preview.6.23329.11 7,051 7/11/2023
8.0.0-preview.5.23302.2 3,563 6/13/2023
8.0.0-preview.4.23260.4 886 5/16/2023
8.0.0-preview.3.23177.8 2,652 4/11/2023
8.0.0-preview.2.23153.2 593 3/14/2023
8.0.0-preview.1.23112.2 51,238 2/21/2023
7.0.20 235,931 5/28/2024
7.0.19 33,471 5/14/2024
7.0.18 102,501 4/9/2024
7.0.17 298,216 3/12/2024
7.0.16 245,716 2/13/2024
7.0.15 261,597 1/9/2024
7.0.14 567,665 11/14/2023
7.0.13 452,162 10/24/2023
7.0.12 374,435 10/10/2023
7.0.11 616,265 9/12/2023
7.0.10 552,841 8/8/2023
7.0.9 505,495 7/11/2023
7.0.8 651,322 6/22/2023
7.0.7 262,600 6/13/2023
7.0.5 1,535,978 4/11/2023
7.0.4 517,752 3/14/2023
7.0.3 877,466 2/14/2023
7.0.2 733,489 1/10/2023
7.0.1 271,130 12/13/2022
7.0.0 427,036 11/7/2022
7.0.0-rc.2.22476.2 4,560 10/11/2022
7.0.0-rc.1.22427.2 2,912 9/14/2022
7.0.0-preview.7.22376.6 2,989 8/9/2022
7.0.0-preview.6.22330.3 1,363 7/12/2022
7.0.0-preview.5.22303.8 985 6/14/2022
7.0.0-preview.4.22251.1 4,422 5/10/2022
7.0.0-preview.3.22178.4 2,687 4/13/2022
7.0.0-preview.2.22153.2 557 3/14/2022
7.0.0-preview.1.22109.13 663 2/17/2022
6.0.36 270,694 11/12/2024
6.0.35 117,755 10/8/2024
6.0.33 152,928 8/13/2024
6.0.32 173,775 7/9/2024
6.0.31 145,425 5/28/2024
6.0.30 77,044 5/14/2024
6.0.29 232,323 4/9/2024
6.0.28 161,010 3/12/2024
6.0.27 329,957 2/13/2024
6.0.26 378,600 1/9/2024
6.0.25 622,009 11/14/2023
6.0.24 297,185 10/24/2023
6.0.23 185,864 10/10/2023
6.0.22 471,234 9/12/2023
6.0.21 509,205 8/8/2023
6.0.20 428,165 7/11/2023
6.0.19 290,689 6/22/2023
6.0.18 169,943 6/13/2023
6.0.16 1,110,925 4/11/2023
6.0.15 773,283 3/14/2023
6.0.14 564,332 2/14/2023
6.0.13 906,562 1/10/2023
6.0.12 862,872 12/13/2022
6.0.11 968,199 11/7/2022
6.0.10 1,966,865 10/11/2022
6.0.9 1,368,695 9/13/2022
6.0.8 1,613,764 8/9/2022
6.0.7 1,695,385 7/12/2022
6.0.6 1,509,912 6/14/2022
6.0.5 1,922,554 5/10/2022
6.0.4 939,321 4/11/2022
6.0.3 1,686,531 3/8/2022
6.0.2 877,136 2/8/2022
6.0.1 1,737,521 12/14/2021
6.0.0 1,696,310 11/8/2021
6.0.0-rc.2.21480.10 11,794 10/12/2021
6.0.0-rc.1.21452.15 5,657 9/14/2021
6.0.0-preview.7.21378.6 11,733 8/10/2021
6.0.0-preview.6.21355.2 1,583 7/14/2021
6.0.0-preview.5.21301.17 17,224 6/15/2021
6.0.0-preview.4.21253.5 1,116 5/24/2021
6.0.0-preview.3.21201.13 1,338 4/8/2021
6.0.0-preview.2.21154.6 1,110 3/11/2021 6.0.0-preview.2.21154.6 is deprecated because it is no longer maintained.
6.0.0-preview.1.21103.6 1,448 2/12/2021 6.0.0-preview.1.21103.6 is deprecated because it is no longer maintained.
5.0.17 556,502 5/10/2022 5.0.17 is deprecated because it is no longer maintained.
5.0.16 209,338 4/11/2022 5.0.16 is deprecated because it is no longer maintained.
5.0.15 124,877 3/8/2022 5.0.15 is deprecated because it is no longer maintained.
5.0.14 89,866 2/8/2022 5.0.14 is deprecated because it is no longer maintained.
5.0.13 243,930 12/14/2021 5.0.13 is deprecated because it is no longer maintained.
5.0.12 353,372 11/7/2021 5.0.12 is deprecated because it is no longer maintained.
5.0.11 810,510 10/12/2021 5.0.11 is deprecated because it is no longer maintained.
5.0.10 561,075 9/14/2021 5.0.10 is deprecated because it is no longer maintained.
5.0.9 610,716 8/10/2021 5.0.9 is deprecated because it is no longer maintained.
5.0.8 400,770 7/13/2021 5.0.8 is deprecated because it is no longer maintained.
5.0.7 849,286 6/8/2021 5.0.7 is deprecated because it is no longer maintained.
5.0.6 676,212 5/11/2021 5.0.6 is deprecated because it is no longer maintained.
5.0.5 877,031 4/6/2021 5.0.5 is deprecated because it is no longer maintained.
5.0.4 365,318 3/9/2021 5.0.4 is deprecated because it is no longer maintained.
5.0.3 441,313 2/9/2021 5.0.3 is deprecated because it is no longer maintained.
5.0.2 549,131 1/12/2021 5.0.2 is deprecated because it is no longer maintained.
5.0.1 545,780 12/8/2020 5.0.1 is deprecated because it is no longer maintained.
5.0.0 571,043 11/9/2020 5.0.0 is deprecated because it is no longer maintained.
5.0.0-rc.2.20475.17 5,178 10/13/2020 5.0.0-rc.2.20475.17 is deprecated because it is no longer maintained.
5.0.0-rc.1.20451.17 4,323 9/14/2020 5.0.0-rc.1.20451.17 is deprecated because it is no longer maintained.
5.0.0-preview.8.20414.8 3,253 8/25/2020 5.0.0-preview.8.20414.8 is deprecated because it is no longer maintained.
5.0.0-preview.7.20365.19 1,607 7/21/2020 5.0.0-preview.7.20365.19 is deprecated because it is no longer maintained.
5.0.0-preview.6.20312.15 1,075 6/25/2020 5.0.0-preview.6.20312.15 is deprecated because it is no longer maintained.
5.0.0-preview.5.20279.2 1,650 6/10/2020 5.0.0-preview.5.20279.2 is deprecated because it is no longer maintained.
5.0.0-preview.4.20257.10 1,188 5/18/2020 5.0.0-preview.4.20257.10 is deprecated because it is no longer maintained.
5.0.0-preview.3.20215.14 1,103 4/23/2020 5.0.0-preview.3.20215.14 is deprecated because it is no longer maintained.
5.0.0-preview.2.20167.3 1,286 4/2/2020 5.0.0-preview.2.20167.3 is deprecated because it is no longer maintained.
5.0.0-preview.1.20124.5 4,105 3/16/2020 5.0.0-preview.1.20124.5 is deprecated because it is no longer maintained.
3.1.32 186,844 12/13/2022
3.1.31 24,167 11/8/2022
3.1.30 33,103 10/11/2022
3.1.29 30,004 9/13/2022
3.1.28 33,759 8/9/2022
3.1.27 62,385 7/12/2022
3.1.26 47,323 6/14/2022
3.1.25 50,670 5/10/2022
3.1.24 63,610 4/11/2022
3.1.23 96,422 3/8/2022
3.1.22 230,418 12/14/2021
3.1.21 102,614 11/7/2021
3.1.20 60,955 10/11/2021
3.1.19 95,864 9/14/2021
3.1.18 167,462 8/10/2021
3.1.17 187,518 7/13/2021
3.1.16 233,596 6/8/2021
3.1.15 136,908 5/11/2021
3.1.14 86,872 4/6/2021
3.1.13 147,489 3/9/2021
3.1.12 265,971 2/9/2021
3.1.11 175,470 1/12/2021
3.1.10 548,126 11/9/2020
3.1.9 937,895 10/13/2020
3.1.8 882,779 9/8/2020
3.1.7 518,103 8/11/2020
3.1.6 492,578 7/14/2020
3.1.5 545,665 6/9/2020
3.1.4 575,358 5/12/2020
3.1.3 780,754 3/24/2020
3.1.2 651,281 2/18/2020
3.1.1 627,635 1/14/2020
3.1.0 745,113 12/3/2019
3.1.0-preview3.19555.2 2,777 11/13/2019 3.1.0-preview3.19555.2 is deprecated because it is no longer maintained.
3.1.0-preview2.19528.8 832 11/1/2019 3.1.0-preview2.19528.8 is deprecated because it is no longer maintained.
3.1.0-preview1.19508.20 1,030 10/15/2019 3.1.0-preview1.19508.20 is deprecated because it is no longer maintained.
3.0.3 26,234 2/18/2020 3.0.3 is deprecated because it is no longer maintained.
3.0.2 20,518 1/14/2020 3.0.2 is deprecated because it is no longer maintained.
3.0.0 294,011 9/23/2019 3.0.0 is deprecated because it is no longer maintained.
3.0.0-rc1.19457.4 1,688 9/16/2019 3.0.0-rc1.19457.4 is deprecated because it is no longer maintained.
3.0.0-preview9.19424.4 1,701 9/4/2019 3.0.0-preview9.19424.4 is deprecated because it is no longer maintained.
3.0.0-preview8.19405.7 21,176 8/13/2019 3.0.0-preview8.19405.7 is deprecated because it is no longer maintained.
3.0.0-preview7.19365.7 1,503 7/23/2019 3.0.0-preview7.19365.7 is deprecated because it is no longer maintained.
3.0.0-preview6.19307.2 1,413 6/12/2019 3.0.0-preview6.19307.2 is deprecated because it is no longer maintained.
3.0.0-preview5-19227-01 104,448 5/6/2019 3.0.0-preview5-19227-01 is deprecated because it is no longer maintained.
3.0.0-preview4-19216-03 1,409 4/18/2019 3.0.0-preview4-19216-03 is deprecated because it is no longer maintained.
3.0.0-preview3-19153-02 885 3/6/2019 3.0.0-preview3-19153-02 is deprecated because it is no longer maintained.
3.0.0-preview-19075-0444 891 1/29/2019 3.0.0-preview-19075-0444 is deprecated because it is no longer maintained.
3.0.0-preview-18579-0056 884 12/3/2018 3.0.0-preview-18579-0056 is deprecated because it is no longer maintained.
2.2.0 3,106,711 12/3/2018 2.2.0 is deprecated because it is no longer maintained.
2.2.0-preview3-35497 5,188 10/17/2018 2.2.0-preview3-35497 is deprecated because it is no longer maintained.