Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore 10.0.0-rc.1.25451.107

Prefix Reserved
This is a prerelease version of Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore.
dotnet add package Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore --version 10.0.0-rc.1.25451.107
                    
NuGet\Install-Package Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore -Version 10.0.0-rc.1.25451.107
                    
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.0-rc.1.25451.107" />
                    
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.0-rc.1.25451.107" />
                    
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.0-rc.1.25451.107
                    
#r "nuget: Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore, 10.0.0-rc.1.25451.107"
                    
#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.0-rc.1.25451.107
                    
#: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.0-rc.1.25451.107&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore&version=10.0.0-rc.1.25451.107&prerelease
                    
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 (104)

Showing the top 5 NuGet packages that depend on Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore:

Package Downloads
Reo.Core.Database

Package Description

Reo.Core.Testing

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.

FenixAlliance.ACL.Dependencies

Application Component for the Alliance Business Suite.

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
Tools, templates, and packages to accelerate building observable, production-ready apps
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!
markjprice/cs10dotnet6
Repository for the Packt Publishing book titled "C# 10 and .NET 6 - Modern Cross-Platform Development" by Mark J. Price
ntxinh/AspNetCore-DDD
Full ASP.NET Core 8.0 LTS application with DDD, CQRS and Event Sourcing
einmontal/SampleProject
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
markjprice/cs12dotnet8
Repository for the Packt Publishing book titled "C# 12 and .NET 8 - Modern Cross-Platform Development Fundamentals" by Mark J. Price
iayti/CleanArchitecture
ASP.NET Core 6 Web API Clean Architecture Solution Template
Version Downloads Last Updated
10.0.0-rc.1.25451.107 6,271 9/9/2025
10.0.0-preview.7.25380.108 1,421 8/12/2025
10.0.0-preview.6.25358.103 506 7/15/2025
10.0.0-preview.5.25277.114 474 6/6/2025
10.0.0-preview.4.25258.110 559 5/12/2025
10.0.0-preview.3.25172.1 472 4/10/2025
10.0.0-preview.2.25164.1 397 3/18/2025
10.0.0-preview.1.25120.3 496 2/25/2025
9.0.9 139,828 9/9/2025
9.0.8 368,251 8/5/2025
9.0.7 562,934 7/8/2025
9.0.6 423,171 6/10/2025
9.0.5 556,585 5/13/2025
9.0.4 1,146,595 4/8/2025
9.0.3 580,941 3/11/2025
9.0.2 741,610 2/11/2025
9.0.1 506,008 1/14/2025
9.0.0 847,410 11/12/2024
9.0.0-rc.2.24474.3 18,288 10/8/2024
9.0.0-rc.1.24452.1 4,860 9/10/2024
9.0.0-preview.7.24406.2 697 8/13/2024
9.0.0-preview.6.24328.4 1,270 7/9/2024
9.0.0-preview.5.24306.11 542 6/11/2024
9.0.0-preview.4.24267.6 360 5/21/2024
9.0.0-preview.3.24172.13 73,407 4/11/2024
9.0.0-preview.2.24128.4 1,340 3/12/2024
9.0.0-preview.1.24081.5 21,028 2/13/2024
8.0.20 51,010 9/9/2025
8.0.19 186,208 8/4/2025
8.0.18 179,729 7/8/2025
8.0.17 317,661 6/10/2025
8.0.16 276,481 5/13/2025
8.0.15 607,836 4/8/2025
8.0.14 974,978 3/11/2025
8.0.13 565,711 2/11/2025
8.0.12 822,713 1/14/2025
8.0.11 2,744,563 11/12/2024
8.0.10 2,613,796 10/8/2024
8.0.8 2,803,115 8/13/2024
8.0.7 1,946,150 7/9/2024
8.0.6 1,847,125 5/28/2024
8.0.5 711,419 5/14/2024
8.0.4 2,140,042 4/9/2024
8.0.3 1,270,088 3/12/2024
8.0.2 1,441,016 2/13/2024
8.0.1 1,700,971 1/9/2024
8.0.0 2,702,606 11/14/2023
8.0.0-rc.2.23480.2 17,373 10/10/2023
8.0.0-rc.1.23421.29 13,327 9/12/2023
8.0.0-preview.7.23375.9 18,387 8/8/2023
8.0.0-preview.6.23329.11 6,902 7/11/2023
8.0.0-preview.5.23302.2 3,506 6/13/2023
8.0.0-preview.4.23260.4 828 5/16/2023
8.0.0-preview.3.23177.8 2,571 4/11/2023
8.0.0-preview.2.23153.2 549 3/14/2023
8.0.0-preview.1.23112.2 51,192 2/21/2023
7.0.20 191,948 5/28/2024
7.0.19 19,962 5/14/2024
7.0.18 84,510 4/9/2024
7.0.17 282,172 3/12/2024
7.0.16 221,065 2/13/2024
7.0.15 241,335 1/9/2024
7.0.14 544,915 11/14/2023
7.0.13 428,259 10/24/2023
7.0.12 353,806 10/10/2023
7.0.11 598,434 9/12/2023
7.0.10 527,884 8/8/2023
7.0.9 485,550 7/11/2023
7.0.8 628,521 6/22/2023
7.0.7 228,380 6/13/2023
7.0.5 1,509,794 4/11/2023
7.0.4 499,084 3/14/2023
7.0.3 760,764 2/14/2023
7.0.2 704,575 1/10/2023
7.0.1 254,846 12/13/2022
7.0.0 403,178 11/7/2022
7.0.0-rc.2.22476.2 4,480 10/11/2022
7.0.0-rc.1.22427.2 2,839 9/14/2022
7.0.0-preview.7.22376.6 2,929 8/9/2022
7.0.0-preview.6.22330.3 1,301 7/12/2022
7.0.0-preview.5.22303.8 913 6/14/2022
7.0.0-preview.4.22251.1 4,369 5/10/2022
7.0.0-preview.3.22178.4 2,620 4/13/2022
7.0.0-preview.2.22153.2 492 3/14/2022
7.0.0-preview.1.22109.13 588 2/17/2022
6.0.36 182,551 11/12/2024
6.0.35 99,664 10/8/2024
6.0.33 133,028 8/13/2024
6.0.32 145,357 7/9/2024
6.0.31 120,110 5/28/2024
6.0.30 57,314 5/14/2024
6.0.29 211,062 4/9/2024
6.0.28 138,012 3/12/2024
6.0.27 302,932 2/13/2024
6.0.26 359,956 1/9/2024
6.0.25 595,248 11/14/2023
6.0.24 274,774 10/24/2023
6.0.23 169,796 10/10/2023
6.0.22 448,458 9/12/2023
6.0.21 475,099 8/8/2023
6.0.20 395,368 7/11/2023
6.0.19 272,039 6/22/2023
6.0.18 154,992 6/13/2023
6.0.16 1,075,587 4/11/2023
6.0.15 721,159 3/14/2023
6.0.14 541,030 2/14/2023
6.0.13 868,034 1/10/2023
6.0.12 820,020 12/13/2022
6.0.11 939,004 11/7/2022
6.0.10 1,928,901 10/11/2022
6.0.9 1,327,651 9/13/2022
6.0.8 1,576,930 8/9/2022
6.0.7 1,654,026 7/12/2022
6.0.6 1,477,074 6/14/2022
6.0.5 1,880,990 5/10/2022
6.0.4 918,551 4/11/2022
6.0.3 1,637,399 3/8/2022
6.0.2 857,647 2/8/2022
6.0.1 1,694,358 12/14/2021
6.0.0 1,637,519 11/8/2021
6.0.0-rc.2.21480.10 11,423 10/12/2021
6.0.0-rc.1.21452.15 5,541 9/14/2021
6.0.0-preview.7.21378.6 11,274 8/10/2021
6.0.0-preview.6.21355.2 1,507 7/14/2021
6.0.0-preview.5.21301.17 17,143 6/15/2021
6.0.0-preview.4.21253.5 1,042 5/24/2021
6.0.0-preview.3.21201.13 1,278 4/8/2021
6.0.0-preview.2.21154.6 1,016 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,340 2/12/2021 6.0.0-preview.1.21103.6 is deprecated because it is no longer maintained.
5.0.17 526,258 5/10/2022 5.0.17 is deprecated because it is no longer maintained.
5.0.16 190,623 4/11/2022 5.0.16 is deprecated because it is no longer maintained.
5.0.15 112,018 3/8/2022 5.0.15 is deprecated because it is no longer maintained.
5.0.14 77,690 2/8/2022 5.0.14 is deprecated because it is no longer maintained.
5.0.13 229,896 12/14/2021 5.0.13 is deprecated because it is no longer maintained.
5.0.12 333,156 11/7/2021 5.0.12 is deprecated because it is no longer maintained.
5.0.11 792,462 10/12/2021 5.0.11 is deprecated because it is no longer maintained.
5.0.10 544,713 9/14/2021 5.0.10 is deprecated because it is no longer maintained.
5.0.9 594,342 8/10/2021 5.0.9 is deprecated because it is no longer maintained.
5.0.8 386,255 7/13/2021 5.0.8 is deprecated because it is no longer maintained.
5.0.7 818,406 6/8/2021 5.0.7 is deprecated because it is no longer maintained.
5.0.6 648,507 5/11/2021 5.0.6 is deprecated because it is no longer maintained.
5.0.5 858,758 4/6/2021 5.0.5 is deprecated because it is no longer maintained.
5.0.4 350,464 3/9/2021 5.0.4 is deprecated because it is no longer maintained.
5.0.3 423,904 2/9/2021 5.0.3 is deprecated because it is no longer maintained.
5.0.2 534,543 1/12/2021 5.0.2 is deprecated because it is no longer maintained.
5.0.1 529,208 12/8/2020 5.0.1 is deprecated because it is no longer maintained.
5.0.0 555,721 11/9/2020 5.0.0 is deprecated because it is no longer maintained.
5.0.0-rc.2.20475.17 5,047 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,228 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,148 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,504 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 979 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,550 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,088 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,015 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,185 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 3,995 3/16/2020 5.0.0-preview.1.20124.5 is deprecated because it is no longer maintained.
3.1.32 164,379 12/13/2022
3.1.31 12,169 11/8/2022
3.1.30 21,146 10/11/2022
3.1.29 18,073 9/13/2022
3.1.28 21,731 8/9/2022
3.1.27 50,296 7/12/2022
3.1.26 34,350 6/14/2022
3.1.25 38,247 5/10/2022
3.1.24 51,678 4/11/2022
3.1.23 84,315 3/8/2022
3.1.22 212,332 12/14/2021
3.1.21 90,151 11/7/2021
3.1.20 48,509 10/11/2021
3.1.19 83,778 9/14/2021
3.1.18 154,676 8/10/2021
3.1.17 172,724 7/13/2021
3.1.16 221,406 6/8/2021
3.1.15 124,263 5/11/2021
3.1.14 74,552 4/6/2021
3.1.13 134,000 3/9/2021
3.1.12 253,138 2/9/2021
3.1.11 162,533 1/12/2021
3.1.10 533,326 11/9/2020
3.1.9 892,043 10/13/2020
3.1.8 865,838 9/8/2020
3.1.7 501,796 8/11/2020
3.1.6 476,243 7/14/2020
3.1.5 530,768 6/9/2020
3.1.4 558,753 5/12/2020
3.1.3 766,655 3/24/2020
3.1.2 636,227 2/18/2020
3.1.1 610,596 1/14/2020
3.1.0 726,120 12/3/2019
3.1.0-preview3.19555.2 2,610 11/13/2019 3.1.0-preview3.19555.2 is deprecated because it is no longer maintained.
3.1.0-preview2.19528.8 739 11/1/2019 3.1.0-preview2.19528.8 is deprecated because it is no longer maintained.
3.1.0-preview1.19508.20 938 10/15/2019 3.1.0-preview1.19508.20 is deprecated because it is no longer maintained.
3.0.3 13,769 2/18/2020 3.0.3 is deprecated because it is no longer maintained.
3.0.2 8,584 1/14/2020 3.0.2 is deprecated because it is no longer maintained.
3.0.0 281,172 9/23/2019 3.0.0 is deprecated because it is no longer maintained.
3.0.0-rc1.19457.4 1,589 9/16/2019 3.0.0-rc1.19457.4 is deprecated because it is no longer maintained.
3.0.0-preview9.19424.4 1,612 9/4/2019 3.0.0-preview9.19424.4 is deprecated because it is no longer maintained.
3.0.0-preview8.19405.7 20,232 8/13/2019 3.0.0-preview8.19405.7 is deprecated because it is no longer maintained.
3.0.0-preview7.19365.7 1,410 7/23/2019 3.0.0-preview7.19365.7 is deprecated because it is no longer maintained.
3.0.0-preview6.19307.2 1,330 6/12/2019 3.0.0-preview6.19307.2 is deprecated because it is no longer maintained.
3.0.0-preview5-19227-01 99,793 5/6/2019 3.0.0-preview5-19227-01 is deprecated because it is no longer maintained.
3.0.0-preview4-19216-03 1,317 4/18/2019 3.0.0-preview4-19216-03 is deprecated because it is no longer maintained.
3.0.0-preview3-19153-02 801 3/6/2019 3.0.0-preview3-19153-02 is deprecated because it is no longer maintained.
3.0.0-preview-19075-0444 791 1/29/2019 3.0.0-preview-19075-0444 is deprecated because it is no longer maintained.
3.0.0-preview-18579-0056 787 12/3/2018 3.0.0-preview-18579-0056 is deprecated because it is no longer maintained.
2.2.0 3,044,210 12/3/2018 2.2.0 is deprecated because it is no longer maintained.
2.2.0-preview3-35497 4,496 10/17/2018 2.2.0-preview3-35497 is deprecated because it is no longer maintained.