# PostgresBuilderExtensions

- Kind: `class`
- Package: [CommunityToolkit.Aspire.Hosting.PostgreSQL.Extensions](/reference/api/csharp/communitytoolkit.aspire.hosting.postgresql.extensions.md)
- Version: `13.1.1`
- Namespace: `Aspire.Hosting`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/67afcca30f02c18687f9c5219313710af9706630/src/CommunityToolkit.Aspire.Hosting.PostgreSQL.Extensions/PostgresBuilderExtensions.cs)

Provides extension methods for adding PostgreSQL resources to an `Hosting.IDistributedApplicationBuilder`.

## Definition

```csharp
namespace Aspire.Hosting;

public static class PostgresBuilderExtensions
{
    // ...
}
```

## Methods

- [WithAdminer(IResourceBuilder<PostgresServerResource>, Action<IResourceBuilder<AdminerContainerResource>>, string?)](/reference/api/csharp/communitytoolkit.aspire.hosting.postgresql.extensions/postgresbuilderextensions/methods.md#withadminer-iresourcebuilder-postgresserverresource-action-iresourcebuilder-adminercontainerresource-string) : `IResourceBuilder<PostgresServerResource>` `extension` -- Adds an administration and development platform for PostgreSQL to the application model using Adminer.
- [WithDbGate(IResourceBuilder<PostgresServerResource>, Action<IResourceBuilder<DbGateContainerResource>>, string?)](/reference/api/csharp/communitytoolkit.aspire.hosting.postgresql.extensions/postgresbuilderextensions/methods.md#withdbgate-iresourcebuilder-postgresserverresource-action-iresourcebuilder-dbgatecontainerresource-string) : `IResourceBuilder<PostgresServerResource>` `extension` -- Adds an administration and development platform for PostgreSQL to the application model using DbGate.
