Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore 10.0.0-preview.2.25164.1

Prefix Reserved
This is a prerelease version of Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore --version 10.0.0-preview.2.25164.1
                    
NuGet\Install-Package Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore -Version 10.0.0-preview.2.25164.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.0-preview.2.25164.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.0-preview.2.25164.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.0-preview.2.25164.1
                    
#r "nuget: Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore, 10.0.0-preview.2.25164.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.
#addin nuget:?package=Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore&version=10.0.0-preview.2.25164.1&prerelease
                    
Install Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore as a Cake Addin
#tool nuget:?package=Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore&version=10.0.0-preview.2.25164.1&prerelease
                    
Install Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (94)

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

FenixAlliance.ACL.Dependencies

Application Component for the Alliance Business Suite.

Be.Vlaanderen.Basisregisters.Api

Common API infrastructure and helpers.

Aspire.Npgsql.EntityFrameworkCore.PostgreSQL

A PostgreSQL® provider for Entity Framework Core that integrates with Aspire, including connection pooling, health checks, logging, and telemetry.

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
jasontaylordev/CleanArchitecture
Clean Architecture Solution Template for ASP.NET Core
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:
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!
mehdihadeli/food-delivery-microservices
🍔 A practical and imaginary food delivery microservices, built with .Net 9, MassTransit, Domain-Driven Design, CQRS, Vertical Slice Architecture, Event-Driven Architecture, and the latest technologies.
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
BehzadDara/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
iayti/CleanArchitecture
ASP.NET Core 6 Web API Clean Architecture Solution Template
markjprice/cs12dotnet8
Repository for the Packt Publishing book titled "C# 12 and .NET 8 - Modern Cross-Platform Development Fundamentals" by Mark J. Price
Version Downloads Last updated
10.0.0-preview.3.25172.1 261 4/10/2025
10.0.0-preview.2.25164.1 347 3/18/2025
10.0.0-preview.1.25120.3 440 2/25/2025
9.0.4 59,788 4/8/2025
9.0.3 234,432 3/11/2025
9.0.2 426,109 2/11/2025
9.0.1 340,792 1/14/2025
9.0.0 592,051 11/12/2024
9.0.0-rc.2.24474.3 16,826 10/8/2024
9.0.0-rc.1.24452.1 4,808 9/10/2024
9.0.0-preview.7.24406.2 495 8/13/2024
9.0.0-preview.6.24328.4 1,102 7/9/2024
9.0.0-preview.5.24306.11 372 6/11/2024
9.0.0-preview.4.24267.6 298 5/21/2024
9.0.0-preview.3.24172.13 73,312 4/11/2024
9.0.0-preview.2.24128.4 1,142 3/12/2024
9.0.0-preview.1.24081.5 20,826 2/13/2024
8.0.15 41,602 4/8/2025
8.0.14 238,180 3/11/2025
8.0.13 256,215 2/11/2025
8.0.12 396,234 1/14/2025
8.0.11 1,765,734 11/12/2024
8.0.10 1,753,685 10/8/2024
8.0.8 2,223,636 8/13/2024
8.0.7 1,486,635 7/9/2024
8.0.6 1,559,192 5/28/2024
8.0.5 568,090 5/14/2024
8.0.4 1,870,390 4/9/2024
8.0.3 1,085,345 3/12/2024
8.0.2 1,205,817 2/13/2024
8.0.1 1,283,903 1/9/2024
8.0.0 2,097,291 11/14/2023
8.0.0-rc.2.23480.2 17,220 10/10/2023
8.0.0-rc.1.23421.29 12,428 9/12/2023
8.0.0-preview.7.23375.9 17,793 8/8/2023
8.0.0-preview.6.23329.11 6,757 7/11/2023
8.0.0-preview.5.23302.2 3,415 6/13/2023
8.0.0-preview.4.23260.4 753 5/16/2023
8.0.0-preview.3.23177.8 2,351 4/11/2023
8.0.0-preview.2.23153.2 479 3/14/2023
8.0.0-preview.1.23112.2 51,122 2/21/2023
7.0.20 139,670 5/28/2024
7.0.19 14,547 5/14/2024
7.0.18 70,320 4/9/2024
7.0.17 272,246 3/12/2024
7.0.16 200,579 2/13/2024
7.0.15 225,279 1/9/2024
7.0.14 528,849 11/14/2023
7.0.13 408,397 10/24/2023
7.0.12 336,107 10/10/2023
7.0.11 579,858 9/12/2023
7.0.10 504,351 8/8/2023
7.0.9 470,979 7/11/2023
7.0.8 599,234 6/22/2023
7.0.7 201,526 6/13/2023
7.0.5 1,477,744 4/11/2023
7.0.4 484,150 3/14/2023
7.0.3 670,311 2/14/2023
7.0.2 685,215 1/10/2023
7.0.1 242,623 12/13/2022
7.0.0 375,698 11/7/2022
7.0.0-rc.2.22476.2 4,410 10/11/2022
7.0.0-rc.1.22427.2 2,748 9/14/2022
7.0.0-preview.7.22376.6 2,845 8/9/2022
7.0.0-preview.6.22330.3 1,212 7/12/2022
7.0.0-preview.5.22303.8 825 6/14/2022
7.0.0-preview.4.22251.1 4,284 5/10/2022
7.0.0-preview.3.22178.4 2,531 4/13/2022
7.0.0-preview.2.22153.2 399 3/14/2022
7.0.0-preview.1.22109.13 497 2/17/2022
6.0.36 65,969 11/12/2024
6.0.35 81,484 10/8/2024
6.0.33 107,330 8/13/2024
6.0.32 117,470 7/9/2024
6.0.31 107,223 5/28/2024
6.0.30 46,463 5/14/2024
6.0.29 186,561 4/9/2024
6.0.28 120,313 3/12/2024
6.0.27 270,862 2/13/2024
6.0.26 343,585 1/9/2024
6.0.25 563,485 11/14/2023
6.0.24 259,573 10/24/2023
6.0.23 159,897 10/10/2023
6.0.22 429,331 9/12/2023
6.0.21 444,917 8/8/2023
6.0.20 363,046 7/11/2023
6.0.19 257,657 6/22/2023
6.0.18 147,058 6/13/2023
6.0.16 1,010,064 4/11/2023
6.0.15 634,890 3/14/2023
6.0.14 515,584 2/14/2023
6.0.13 827,916 1/10/2023
6.0.12 748,680 12/13/2022
6.0.11 907,713 11/7/2022
6.0.10 1,883,681 10/11/2022
6.0.9 1,261,632 9/13/2022
6.0.8 1,537,978 8/9/2022
6.0.7 1,614,203 7/12/2022
6.0.6 1,430,887 6/14/2022
6.0.5 1,840,819 5/10/2022
6.0.4 902,425 4/11/2022
6.0.3 1,597,364 3/8/2022
6.0.2 838,426 2/8/2022
6.0.1 1,636,332 12/14/2021
6.0.0 1,542,177 11/8/2021
6.0.0-rc.2.21480.10 11,137 10/12/2021
6.0.0-rc.1.21452.15 5,435 9/14/2021
6.0.0-preview.7.21378.6 10,838 8/10/2021
6.0.0-preview.6.21355.2 1,414 7/14/2021
6.0.0-preview.5.21301.17 17,056 6/15/2021
6.0.0-preview.4.21253.5 885 5/24/2021
6.0.0-preview.3.21201.13 1,184 4/8/2021
6.0.0-preview.2.21154.6 874 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,198 2/12/2021 6.0.0-preview.1.21103.6 is deprecated because it is no longer maintained.
5.0.17 492,766 5/10/2022 5.0.17 is deprecated because it is no longer maintained.
5.0.16 179,932 4/11/2022 5.0.16 is deprecated because it is no longer maintained.
5.0.15 107,124 3/8/2022 5.0.15 is deprecated because it is no longer maintained.
5.0.14 73,836 2/8/2022 5.0.14 is deprecated because it is no longer maintained.
5.0.13 223,918 12/14/2021 5.0.13 is deprecated because it is no longer maintained.
5.0.12 319,893 11/7/2021 5.0.12 is deprecated because it is no longer maintained.
5.0.11 774,390 10/12/2021 5.0.11 is deprecated because it is no longer maintained.
5.0.10 532,930 9/14/2021 5.0.10 is deprecated because it is no longer maintained.
5.0.9 585,885 8/10/2021 5.0.9 is deprecated because it is no longer maintained.
5.0.8 375,113 7/13/2021 5.0.8 is deprecated because it is no longer maintained.
5.0.7 796,951 6/8/2021 5.0.7 is deprecated because it is no longer maintained.
5.0.6 632,362 5/11/2021 5.0.6 is deprecated because it is no longer maintained.
5.0.5 841,730 4/6/2021 5.0.5 is deprecated because it is no longer maintained.
5.0.4 342,075 3/9/2021 5.0.4 is deprecated because it is no longer maintained.
5.0.3 411,488 2/9/2021 5.0.3 is deprecated because it is no longer maintained.
5.0.2 527,082 1/12/2021 5.0.2 is deprecated because it is no longer maintained.
5.0.1 520,031 12/8/2020 5.0.1 is deprecated because it is no longer maintained.
5.0.0 536,757 11/9/2020 5.0.0 is deprecated because it is no longer maintained.
5.0.0-rc.2.20475.17 4,808 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,051 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 2,998 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,362 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 826 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,400 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 938 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 860 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,030 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,848 3/16/2020 5.0.0-preview.1.20124.5 is deprecated because it is no longer maintained.
3.1.32 147,057 12/13/2022
3.1.31 8,905 11/8/2022
3.1.30 17,515 10/11/2022
3.1.29 14,354 9/13/2022
3.1.28 18,219 8/9/2022
3.1.27 46,442 7/12/2022
3.1.26 29,647 6/14/2022
3.1.25 34,780 5/10/2022
3.1.24 48,548 4/11/2022
3.1.23 80,783 3/8/2022
3.1.22 199,719 12/14/2021
3.1.21 85,146 11/7/2021
3.1.20 44,810 10/11/2021
3.1.19 80,149 9/14/2021
3.1.18 150,441 8/10/2021
3.1.17 165,124 7/13/2021
3.1.16 217,616 6/8/2021
3.1.15 119,748 5/11/2021
3.1.14 69,951 4/6/2021
3.1.13 129,401 3/9/2021
3.1.12 246,780 2/9/2021
3.1.11 157,252 1/12/2021
3.1.10 525,402 11/9/2020
3.1.9 859,137 10/13/2020
3.1.8 855,553 9/8/2020
3.1.7 491,857 8/11/2020
3.1.6 466,076 7/14/2020
3.1.5 524,207 6/9/2020
3.1.4 551,131 5/12/2020
3.1.3 756,600 3/24/2020
3.1.2 629,943 2/18/2020
3.1.1 599,515 1/14/2020
3.1.0 704,398 12/3/2019
3.1.0-preview3.19555.2 2,433 11/13/2019 3.1.0-preview3.19555.2 is deprecated because it is no longer maintained.
3.1.0-preview2.19528.8 589 11/1/2019 3.1.0-preview2.19528.8 is deprecated because it is no longer maintained.
3.1.0-preview1.19508.20 792 10/15/2019 3.1.0-preview1.19508.20 is deprecated because it is no longer maintained.
3.0.3 9,803 2/18/2020 3.0.3 is deprecated because it is no longer maintained.
3.0.2 5,456 1/14/2020 3.0.2 is deprecated because it is no longer maintained.
3.0.0 276,233 9/23/2019 3.0.0 is deprecated because it is no longer maintained.
3.0.0-rc1.19457.4 1,439 9/16/2019 3.0.0-rc1.19457.4 is deprecated because it is no longer maintained.
3.0.0-preview9.19424.4 1,466 9/4/2019 3.0.0-preview9.19424.4 is deprecated because it is no longer maintained.
3.0.0-preview8.19405.7 19,766 8/13/2019 3.0.0-preview8.19405.7 is deprecated because it is no longer maintained.
3.0.0-preview7.19365.7 1,254 7/23/2019 3.0.0-preview7.19365.7 is deprecated because it is no longer maintained.
3.0.0-preview6.19307.2 1,180 6/12/2019 3.0.0-preview6.19307.2 is deprecated because it is no longer maintained.
3.0.0-preview5-19227-01 96,970 5/6/2019 3.0.0-preview5-19227-01 is deprecated because it is no longer maintained.
3.0.0-preview4-19216-03 1,159 4/18/2019 3.0.0-preview4-19216-03 is deprecated because it is no longer maintained.
3.0.0-preview3-19153-02 645 3/6/2019 3.0.0-preview3-19153-02 is deprecated because it is no longer maintained.
3.0.0-preview-19075-0444 634 1/29/2019 3.0.0-preview-19075-0444 is deprecated because it is no longer maintained.
3.0.0-preview-18579-0056 635 12/3/2018 3.0.0-preview-18579-0056 is deprecated because it is no longer maintained.
2.2.0 2,965,387 12/3/2018 2.2.0 is deprecated because it is no longer maintained.
2.2.0-preview3-35497 3,706 10/17/2018 2.2.0-preview3-35497 is deprecated because it is no longer maintained.