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.
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.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.  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 (98)

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 (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.5.25277.114 177 6/6/2025
10.0.0-preview.4.25258.110 514 5/12/2025
10.0.0-preview.3.25172.1 436 4/10/2025
10.0.0-preview.2.25164.1 365 3/18/2025
10.0.0-preview.1.25120.3 454 2/25/2025
9.0.6 41,922 6/10/2025
9.0.5 287,875 5/13/2025
9.0.4 641,119 4/8/2025
9.0.3 439,114 3/11/2025
9.0.2 586,304 2/11/2025
9.0.1 433,207 1/14/2025
9.0.0 691,538 11/12/2024
9.0.0-rc.2.24474.3 17,850 10/8/2024
9.0.0-rc.1.24452.1 4,826 9/10/2024
9.0.0-preview.7.24406.2 509 8/13/2024
9.0.0-preview.6.24328.4 1,150 7/9/2024
9.0.0-preview.5.24306.11 419 6/11/2024
9.0.0-preview.4.24267.6 327 5/21/2024
9.0.0-preview.3.24172.13 73,355 4/11/2024
9.0.0-preview.2.24128.4 1,231 3/12/2024
9.0.0-preview.1.24081.5 20,894 2/13/2024
8.0.17 28,675 6/10/2025
8.0.16 128,831 5/13/2025
8.0.15 318,214 4/8/2025
8.0.14 514,705 3/11/2025
8.0.13 382,713 2/11/2025
8.0.12 570,923 1/14/2025
8.0.11 2,190,414 11/12/2024
8.0.10 2,124,541 10/8/2024
8.0.8 2,464,078 8/13/2024
8.0.7 1,675,977 7/9/2024
8.0.6 1,679,752 5/28/2024
8.0.5 625,804 5/14/2024
8.0.4 1,981,043 4/9/2024
8.0.3 1,160,877 3/12/2024
8.0.2 1,295,282 2/13/2024
8.0.1 1,429,490 1/9/2024
8.0.0 2,311,378 11/14/2023
8.0.0-rc.2.23480.2 17,271 10/10/2023
8.0.0-rc.1.23421.29 13,037 9/12/2023
8.0.0-preview.7.23375.9 18,055 8/8/2023
8.0.0-preview.6.23329.11 6,792 7/11/2023
8.0.0-preview.5.23302.2 3,441 6/13/2023
8.0.0-preview.4.23260.4 773 5/16/2023
8.0.0-preview.3.23177.8 2,467 4/11/2023
8.0.0-preview.2.23153.2 497 3/14/2023
8.0.0-preview.1.23112.2 51,141 2/21/2023
7.0.20 159,864 5/28/2024
7.0.19 15,568 5/14/2024
7.0.18 72,795 4/9/2024
7.0.17 275,257 3/12/2024
7.0.16 208,021 2/13/2024
7.0.15 230,981 1/9/2024
7.0.14 534,382 11/14/2023
7.0.13 416,124 10/24/2023
7.0.12 342,101 10/10/2023
7.0.11 587,313 9/12/2023
7.0.10 512,887 8/8/2023
7.0.9 476,402 7/11/2023
7.0.8 611,513 6/22/2023
7.0.7 209,566 6/13/2023
7.0.5 1,490,324 4/11/2023
7.0.4 489,499 3/14/2023
7.0.3 699,433 2/14/2023
7.0.2 691,868 1/10/2023
7.0.1 245,945 12/13/2022
7.0.0 387,982 11/7/2022
7.0.0-rc.2.22476.2 4,425 10/11/2022
7.0.0-rc.1.22427.2 2,770 9/14/2022
7.0.0-preview.7.22376.6 2,868 8/9/2022
7.0.0-preview.6.22330.3 1,238 7/12/2022
7.0.0-preview.5.22303.8 849 6/14/2022
7.0.0-preview.4.22251.1 4,311 5/10/2022
7.0.0-preview.3.22178.4 2,558 4/13/2022
7.0.0-preview.2.22153.2 426 3/14/2022
7.0.0-preview.1.22109.13 527 2/17/2022
6.0.36 117,313 11/12/2024
6.0.35 88,444 10/8/2024
6.0.33 118,018 8/13/2024
6.0.32 127,840 7/9/2024
6.0.31 111,815 5/28/2024
6.0.30 49,425 5/14/2024
6.0.29 195,081 4/9/2024
6.0.28 125,958 3/12/2024
6.0.27 284,006 2/13/2024
6.0.26 350,369 1/9/2024
6.0.25 576,290 11/14/2023
6.0.24 264,371 10/24/2023
6.0.23 163,382 10/10/2023
6.0.22 436,222 9/12/2023
6.0.21 456,078 8/8/2023
6.0.20 375,783 7/11/2023
6.0.19 262,298 6/22/2023
6.0.18 149,175 6/13/2023
6.0.16 1,042,439 4/11/2023
6.0.15 667,085 3/14/2023
6.0.14 526,283 2/14/2023
6.0.13 844,215 1/10/2023
6.0.12 778,629 12/13/2022
6.0.11 919,221 11/7/2022
6.0.10 1,901,555 10/11/2022
6.0.9 1,288,437 9/13/2022
6.0.8 1,551,903 8/9/2022
6.0.7 1,630,406 7/12/2022
6.0.6 1,446,475 6/14/2022
6.0.5 1,857,610 5/10/2022
6.0.4 908,198 4/11/2022
6.0.3 1,608,946 3/8/2022
6.0.2 846,771 2/8/2022
6.0.1 1,657,212 12/14/2021
6.0.0 1,585,795 11/8/2021
6.0.0-rc.2.21480.10 11,166 10/12/2021
6.0.0-rc.1.21452.15 5,461 9/14/2021
6.0.0-preview.7.21378.6 10,871 8/10/2021
6.0.0-preview.6.21355.2 1,448 7/14/2021
6.0.0-preview.5.21301.17 17,086 6/15/2021
6.0.0-preview.4.21253.5 974 5/24/2021
6.0.0-preview.3.21201.13 1,216 4/8/2021
6.0.0-preview.2.21154.6 916 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,243 2/12/2021 6.0.0-preview.1.21103.6 is deprecated because it is no longer maintained.
5.0.17 503,713 5/10/2022 5.0.17 is deprecated because it is no longer maintained.
5.0.16 182,707 4/11/2022 5.0.16 is deprecated because it is no longer maintained.
5.0.15 107,855 3/8/2022 5.0.15 is deprecated because it is no longer maintained.
5.0.14 74,259 2/8/2022 5.0.14 is deprecated because it is no longer maintained.
5.0.13 224,945 12/14/2021 5.0.13 is deprecated because it is no longer maintained.
5.0.12 323,949 11/7/2021 5.0.12 is deprecated because it is no longer maintained.
5.0.11 780,408 10/12/2021 5.0.11 is deprecated because it is no longer maintained.
5.0.10 536,535 9/14/2021 5.0.10 is deprecated because it is no longer maintained.
5.0.9 588,563 8/10/2021 5.0.9 is deprecated because it is no longer maintained.
5.0.8 379,197 7/13/2021 5.0.8 is deprecated because it is no longer maintained.
5.0.7 806,708 6/8/2021 5.0.7 is deprecated because it is no longer maintained.
5.0.6 638,010 5/11/2021 5.0.6 is deprecated because it is no longer maintained.
5.0.5 850,524 4/6/2021 5.0.5 is deprecated because it is no longer maintained.
5.0.4 344,771 3/9/2021 5.0.4 is deprecated because it is no longer maintained.
5.0.3 416,801 2/9/2021 5.0.3 is deprecated because it is no longer maintained.
5.0.2 530,287 1/12/2021 5.0.2 is deprecated because it is no longer maintained.
5.0.1 524,069 12/8/2020 5.0.1 is deprecated because it is no longer maintained.
5.0.0 549,815 11/9/2020 5.0.0 is deprecated because it is no longer maintained.
5.0.0-rc.2.20475.17 4,908 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,097 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,044 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,405 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 871 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,446 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 987 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 909 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,078 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,896 3/16/2020 5.0.0-preview.1.20124.5 is deprecated because it is no longer maintained.
3.1.32 151,932 12/13/2022
3.1.31 9,026 11/8/2022
3.1.30 17,787 10/11/2022
3.1.29 14,658 9/13/2022
3.1.28 18,356 8/9/2022
3.1.27 46,853 7/12/2022
3.1.26 30,089 6/14/2022
3.1.25 34,902 5/10/2022
3.1.24 48,618 4/11/2022
3.1.23 81,034 3/8/2022
3.1.22 201,911 12/14/2021
3.1.21 85,967 11/7/2021
3.1.20 45,021 10/11/2021
3.1.19 80,372 9/14/2021
3.1.18 151,098 8/10/2021
3.1.17 166,935 7/13/2021
3.1.16 218,078 6/8/2021
3.1.15 120,348 5/11/2021
3.1.14 70,694 4/6/2021
3.1.13 129,957 3/9/2021
3.1.12 247,891 2/9/2021
3.1.11 158,088 1/12/2021
3.1.10 527,026 11/9/2020
3.1.9 868,369 10/13/2020
3.1.8 858,435 9/8/2020
3.1.7 494,810 8/11/2020
3.1.6 469,456 7/14/2020
3.1.5 525,707 6/9/2020
3.1.4 552,244 5/12/2020
3.1.3 760,085 3/24/2020
3.1.2 631,154 2/18/2020
3.1.1 602,610 1/14/2020
3.1.0 714,683 12/3/2019
3.1.0-preview3.19555.2 2,480 11/13/2019 3.1.0-preview3.19555.2 is deprecated because it is no longer maintained.
3.1.0-preview2.19528.8 638 11/1/2019 3.1.0-preview2.19528.8 is deprecated because it is no longer maintained.
3.1.0-preview1.19508.20 842 10/15/2019 3.1.0-preview1.19508.20 is deprecated because it is no longer maintained.
3.0.3 10,206 2/18/2020 3.0.3 is deprecated because it is no longer maintained.
3.0.2 5,521 1/14/2020 3.0.2 is deprecated because it is no longer maintained.
3.0.0 277,004 9/23/2019 3.0.0 is deprecated because it is no longer maintained.
3.0.0-rc1.19457.4 1,484 9/16/2019 3.0.0-rc1.19457.4 is deprecated because it is no longer maintained.
3.0.0-preview9.19424.4 1,515 9/4/2019 3.0.0-preview9.19424.4 is deprecated because it is no longer maintained.
3.0.0-preview8.19405.7 19,817 8/13/2019 3.0.0-preview8.19405.7 is deprecated because it is no longer maintained.
3.0.0-preview7.19365.7 1,306 7/23/2019 3.0.0-preview7.19365.7 is deprecated because it is no longer maintained.
3.0.0-preview6.19307.2 1,229 6/12/2019 3.0.0-preview6.19307.2 is deprecated because it is no longer maintained.
3.0.0-preview5-19227-01 97,019 5/6/2019 3.0.0-preview5-19227-01 is deprecated because it is no longer maintained.
3.0.0-preview4-19216-03 1,210 4/18/2019 3.0.0-preview4-19216-03 is deprecated because it is no longer maintained.
3.0.0-preview3-19153-02 695 3/6/2019 3.0.0-preview3-19153-02 is deprecated because it is no longer maintained.
3.0.0-preview-19075-0444 689 1/29/2019 3.0.0-preview-19075-0444 is deprecated because it is no longer maintained.
3.0.0-preview-18579-0056 687 12/3/2018 3.0.0-preview-18579-0056 is deprecated because it is no longer maintained.
2.2.0 2,993,118 12/3/2018 2.2.0 is deprecated because it is no longer maintained.
2.2.0-preview3-35497 3,777 10/17/2018 2.2.0-preview3-35497 is deprecated because it is no longer maintained.