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

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-preview.4.25258.110
                    
NuGet\Install-Package Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore -Version 10.0.0-preview.4.25258.110
                    
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.4.25258.110" />
                    
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.4.25258.110" />
                    
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.4.25258.110
                    
#r "nuget: Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore, 10.0.0-preview.4.25258.110"
                    
#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.4.25258.110&prerelease
                    
Install Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore as a Cake Addin
#tool nuget:?package=Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore&version=10.0.0-preview.4.25258.110&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 (96)

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 (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
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.4.25258.110 0 5/12/2025
10.0.0-preview.3.25172.1 410 4/10/2025
10.0.0-preview.2.25164.1 351 3/18/2025
10.0.0-preview.1.25120.3 444 2/25/2025
9.0.4 261,232 4/8/2025
9.0.3 309,233 3/11/2025
9.0.2 488,756 2/11/2025
9.0.1 373,524 1/14/2025
9.0.0 624,541 11/12/2024
9.0.0-rc.2.24474.3 17,694 10/8/2024
9.0.0-rc.1.24452.1 4,812 9/10/2024
9.0.0-preview.7.24406.2 498 8/13/2024
9.0.0-preview.6.24328.4 1,113 7/9/2024
9.0.0-preview.5.24306.11 386 6/11/2024
9.0.0-preview.4.24267.6 309 5/21/2024
9.0.0-preview.3.24172.13 73,329 4/11/2024
9.0.0-preview.2.24128.4 1,165 3/12/2024
9.0.0-preview.1.24081.5 20,864 2/13/2024
8.0.15 142,807 4/8/2025
8.0.14 331,847 3/11/2025
8.0.13 296,686 2/11/2025
8.0.12 454,274 1/14/2025
8.0.11 1,904,841 11/12/2024
8.0.10 1,873,941 10/8/2024
8.0.8 2,300,597 8/13/2024
8.0.7 1,549,224 7/9/2024
8.0.6 1,599,369 5/28/2024
8.0.5 587,685 5/14/2024
8.0.4 1,906,460 4/9/2024
8.0.3 1,109,573 3/12/2024
8.0.2 1,235,843 2/13/2024
8.0.1 1,326,456 1/9/2024
8.0.0 2,160,622 11/14/2023
8.0.0-rc.2.23480.2 17,252 10/10/2023
8.0.0-rc.1.23421.29 12,833 9/12/2023
8.0.0-preview.7.23375.9 17,884 8/8/2023
8.0.0-preview.6.23329.11 6,769 7/11/2023
8.0.0-preview.5.23302.2 3,420 6/13/2023
8.0.0-preview.4.23260.4 756 5/16/2023
8.0.0-preview.3.23177.8 2,387 4/11/2023
8.0.0-preview.2.23153.2 483 3/14/2023
8.0.0-preview.1.23112.2 51,125 2/21/2023
7.0.20 145,198 5/28/2024
7.0.19 14,810 5/14/2024
7.0.18 71,365 4/9/2024
7.0.17 273,118 3/12/2024
7.0.16 203,175 2/13/2024
7.0.15 226,725 1/9/2024
7.0.14 530,424 11/14/2023
7.0.13 410,843 10/24/2023
7.0.12 338,069 10/10/2023
7.0.11 582,317 9/12/2023
7.0.10 506,948 8/8/2023
7.0.9 472,700 7/11/2023
7.0.8 602,892 6/22/2023
7.0.7 203,746 6/13/2023
7.0.5 1,481,638 4/11/2023
7.0.4 485,991 3/14/2023
7.0.3 673,970 2/14/2023
7.0.2 687,729 1/10/2023
7.0.1 243,559 12/13/2022
7.0.0 380,293 11/7/2022
7.0.0-rc.2.22476.2 4,412 10/11/2022
7.0.0-rc.1.22427.2 2,752 9/14/2022
7.0.0-preview.7.22376.6 2,849 8/9/2022
7.0.0-preview.6.22330.3 1,217 7/12/2022
7.0.0-preview.5.22303.8 828 6/14/2022
7.0.0-preview.4.22251.1 4,289 5/10/2022
7.0.0-preview.3.22178.4 2,536 4/13/2022
7.0.0-preview.2.22153.2 404 3/14/2022
7.0.0-preview.1.22109.13 503 2/17/2022
6.0.36 84,449 11/12/2024
6.0.35 83,997 10/8/2024
6.0.33 111,296 8/13/2024
6.0.32 120,658 7/9/2024
6.0.31 108,895 5/28/2024
6.0.30 47,372 5/14/2024
6.0.29 189,248 4/9/2024
6.0.28 122,178 3/12/2024
6.0.27 275,076 2/13/2024
6.0.26 345,778 1/9/2024
6.0.25 568,294 11/14/2023
6.0.24 261,418 10/24/2023
6.0.23 161,123 10/10/2023
6.0.22 431,364 9/12/2023
6.0.21 449,007 8/8/2023
6.0.20 366,724 7/11/2023
6.0.19 259,250 6/22/2023
6.0.18 147,802 6/13/2023
6.0.16 1,019,018 4/11/2023
6.0.15 644,819 3/14/2023
6.0.14 518,954 2/14/2023
6.0.13 832,495 1/10/2023
6.0.12 758,325 12/13/2022
6.0.11 911,548 11/7/2022
6.0.10 1,888,730 10/11/2022
6.0.9 1,271,142 9/13/2022
6.0.8 1,542,122 8/9/2022
6.0.7 1,619,385 7/12/2022
6.0.6 1,436,734 6/14/2022
6.0.5 1,846,301 5/10/2022
6.0.4 904,335 4/11/2022
6.0.3 1,600,851 3/8/2022
6.0.2 841,641 2/8/2022
6.0.1 1,642,753 12/14/2021
6.0.0 1,556,882 11/8/2021
6.0.0-rc.2.21480.10 11,146 10/12/2021
6.0.0-rc.1.21452.15 5,442 9/14/2021
6.0.0-preview.7.21378.6 10,850 8/10/2021
6.0.0-preview.6.21355.2 1,424 7/14/2021
6.0.0-preview.5.21301.17 17,066 6/15/2021
6.0.0-preview.4.21253.5 895 5/24/2021
6.0.0-preview.3.21201.13 1,194 4/8/2021
6.0.0-preview.2.21154.6 887 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,212 2/12/2021 6.0.0-preview.1.21103.6 is deprecated because it is no longer maintained.
5.0.17 496,195 5/10/2022 5.0.17 is deprecated because it is no longer maintained.
5.0.16 180,880 4/11/2022 5.0.16 is deprecated because it is no longer maintained.
5.0.15 107,313 3/8/2022 5.0.15 is deprecated because it is no longer maintained.
5.0.14 73,907 2/8/2022 5.0.14 is deprecated because it is no longer maintained.
5.0.13 224,223 12/14/2021 5.0.13 is deprecated because it is no longer maintained.
5.0.12 321,192 11/7/2021 5.0.12 is deprecated because it is no longer maintained.
5.0.11 776,037 10/12/2021 5.0.11 is deprecated because it is no longer maintained.
5.0.10 533,858 9/14/2021 5.0.10 is deprecated because it is no longer maintained.
5.0.9 586,656 8/10/2021 5.0.9 is deprecated because it is no longer maintained.
5.0.8 376,238 7/13/2021 5.0.8 is deprecated because it is no longer maintained.
5.0.7 798,825 6/8/2021 5.0.7 is deprecated because it is no longer maintained.
5.0.6 633,994 5/11/2021 5.0.6 is deprecated because it is no longer maintained.
5.0.5 843,133 4/6/2021 5.0.5 is deprecated because it is no longer maintained.
5.0.4 342,472 3/9/2021 5.0.4 is deprecated because it is no longer maintained.
5.0.3 412,573 2/9/2021 5.0.3 is deprecated because it is no longer maintained.
5.0.2 527,308 1/12/2021 5.0.2 is deprecated because it is no longer maintained.
5.0.1 520,349 12/8/2020 5.0.1 is deprecated because it is no longer maintained.
5.0.0 539,380 11/9/2020 5.0.0 is deprecated because it is no longer maintained.
5.0.0-rc.2.20475.17 4,843 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,064 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,012 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,375 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 840 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,413 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 951 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 873 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,043 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,862 3/16/2020 5.0.0-preview.1.20124.5 is deprecated because it is no longer maintained.
3.1.32 148,598 12/13/2022
3.1.31 8,943 11/8/2022
3.1.30 17,593 10/11/2022
3.1.29 14,440 9/13/2022
3.1.28 18,245 8/9/2022
3.1.27 46,611 7/12/2022
3.1.26 29,842 6/14/2022
3.1.25 34,819 5/10/2022
3.1.24 48,564 4/11/2022
3.1.23 80,872 3/8/2022
3.1.22 200,226 12/14/2021
3.1.21 85,359 11/7/2021
3.1.20 44,870 10/11/2021
3.1.19 80,209 9/14/2021
3.1.18 150,750 8/10/2021
3.1.17 165,761 7/13/2021
3.1.16 217,681 6/8/2021
3.1.15 119,917 5/11/2021
3.1.14 70,211 4/6/2021
3.1.13 129,554 3/9/2021
3.1.12 247,116 2/9/2021
3.1.11 157,590 1/12/2021
3.1.10 526,023 11/9/2020
3.1.9 861,721 10/13/2020
3.1.8 856,374 9/8/2020
3.1.7 492,625 8/11/2020
3.1.6 467,386 7/14/2020
3.1.5 524,885 6/9/2020
3.1.4 551,468 5/12/2020
3.1.3 757,852 3/24/2020
3.1.2 630,465 2/18/2020
3.1.1 600,641 1/14/2020
3.1.0 708,373 12/3/2019
3.1.0-preview3.19555.2 2,447 11/13/2019 3.1.0-preview3.19555.2 is deprecated because it is no longer maintained.
3.1.0-preview2.19528.8 603 11/1/2019 3.1.0-preview2.19528.8 is deprecated because it is no longer maintained.
3.1.0-preview1.19508.20 807 10/15/2019 3.1.0-preview1.19508.20 is deprecated because it is no longer maintained.
3.0.3 9,958 2/18/2020 3.0.3 is deprecated because it is no longer maintained.
3.0.2 5,470 1/14/2020 3.0.2 is deprecated because it is no longer maintained.
3.0.0 276,515 9/23/2019 3.0.0 is deprecated because it is no longer maintained.
3.0.0-rc1.19457.4 1,451 9/16/2019 3.0.0-rc1.19457.4 is deprecated because it is no longer maintained.
3.0.0-preview9.19424.4 1,480 9/4/2019 3.0.0-preview9.19424.4 is deprecated because it is no longer maintained.
3.0.0-preview8.19405.7 19,781 8/13/2019 3.0.0-preview8.19405.7 is deprecated because it is no longer maintained.
3.0.0-preview7.19365.7 1,269 7/23/2019 3.0.0-preview7.19365.7 is deprecated because it is no longer maintained.
3.0.0-preview6.19307.2 1,194 6/12/2019 3.0.0-preview6.19307.2 is deprecated because it is no longer maintained.
3.0.0-preview5-19227-01 96,984 5/6/2019 3.0.0-preview5-19227-01 is deprecated because it is no longer maintained.
3.0.0-preview4-19216-03 1,175 4/18/2019 3.0.0-preview4-19216-03 is deprecated because it is no longer maintained.
3.0.0-preview3-19153-02 659 3/6/2019 3.0.0-preview3-19153-02 is deprecated because it is no longer maintained.
3.0.0-preview-19075-0444 648 1/29/2019 3.0.0-preview-19075-0444 is deprecated because it is no longer maintained.
3.0.0-preview-18579-0056 649 12/3/2018 3.0.0-preview-18579-0056 is deprecated because it is no longer maintained.
2.2.0 2,974,253 12/3/2018 2.2.0 is deprecated because it is no longer maintained.
2.2.0-preview3-35497 3,720 10/17/2018 2.2.0-preview3-35497 is deprecated because it is no longer maintained.