Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 1.65 KB

postgresql-integration.md

File metadata and controls

33 lines (21 loc) · 1.65 KB
title description ms.date uid
.NET Aspire PostgreSQL integration
Learn how to integrate PostgreSQL with .NET Aspire applications, using both hosting and client integrations.
02/07/2025
database/postgresql-integration

.NET Aspire PostgreSQL integration

[!INCLUDE includes-hosting-and-client]

PostgreSQL is a powerful, open source object-relational database system with many years of active development that has earned it a strong reputation for reliability, feature robustness, and performance. The .NET Aspire PostgreSQL integration provides a way to connect to existing PostgreSQL databases, or create new instances from .NET with the docker.io/library/postgres container image.

Hosting integration

[!INCLUDE postgresql-app-host]

Hosting integration health checks

The PostgreSQL hosting integration automatically adds a health check for the PostgreSQL server resource. The health check verifies that the PostgreSQL server is running and that a connection can be established to it.

The hosting integration relies on the 📦 AspNetCore.HealthChecks.Npgsql NuGet package.

Client integration

[!INCLUDE postgresql-client]

See also