Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore
10.0.5
Prefix Reserved
See the version list below for details.
dotnet add package Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore --version 10.0.5
NuGet\Install-Package Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore -Version 10.0.5
<PackageReference Include="Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore" Version="10.0.5" />
<PackageVersion Include="Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore" Version="10.0.5" />
<PackageReference Include="Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore" />
paket add Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore --version 10.0.5
#r "nuget: Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore, 10.0.5"
#:package Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore@10.0.5
#addin nuget:?package=Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore&version=10.0.5
#tool nuget:?package=Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore&version=10.0.5
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 | Versions 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. |
-
net10.0
- Microsoft.EntityFrameworkCore.Relational (>= 10.0.5)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 10.0.5)
- Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions (>= 10.0.5)
NuGet packages (135)
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 |
|
|
Reo.Core.IntegrationTesting
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 11.0.0-preview.2.26159.112 | 216 | 3/10/2026 |
| 11.0.0-preview.1.26104.118 | 298 | 2/10/2026 |
| 10.0.5 | 213,262 | 3/12/2026 |
| 10.0.4 | 47,294 | 3/10/2026 |
| 10.0.3 | 581,165 | 2/10/2026 |
| 10.0.2 | 726,129 | 1/13/2026 |
| 10.0.1 | 1,282,448 | 12/9/2025 |
| 10.0.0 | 1,211,361 | 11/11/2025 |
| 10.0.0-rc.2.25502.107 | 13,136 | 10/14/2025 |
| 9.0.14 | 26,677 | 3/10/2026 |
| 9.0.13 | 77,695 | 2/10/2026 |
| 9.0.12 | 124,962 | 1/13/2026 |
| 9.0.11 | 544,296 | 11/11/2025 |
| 9.0.10 | 790,686 | 10/14/2025 |
| 9.0.9 | 1,874,315 | 9/9/2025 |
| 8.0.25 | 42,934 | 3/10/2026 |
| 8.0.24 | 105,787 | 2/10/2026 |
| 8.0.23 | 159,555 | 1/13/2026 |
| 8.0.22 | 525,178 | 11/11/2025 |
| 8.0.21 | 369,481 | 10/14/2025 |