PostgresDatabaseResource
Class net10.0
A resource that represents a PostgreSQL database. This is a child resource of a
PostgresServerResource. namespace Aspire.Hosting.ApplicationModel;
public class PostgresDatabaseResource : Aspire.Hosting.ApplicationModel.Resource, Aspire.Hosting.ApplicationModel.IManifestExpressionProvider, Aspire.Hosting.ApplicationModel.IResource, Aspire.Hosting.ApplicationModel.IResourceWithConnectionString, Aspire.Hosting.ApplicationModel.IResourceWithParent, Aspire.Hosting.ApplicationModel.IResourceWithParent<Aspire.Hosting.ApplicationModel.PostgresServerResource>, Aspire.Hosting.ApplicationModel.IValueProvider, Aspire.Hosting.ApplicationModel.IValueWithReferences{ // ...} ResourceIManifestExpressionProviderIResourceIResourceWithConnectionStringIResourceWithParentIResourceWithParent<PostgresServerResource>IValueProviderIValueWithReferences
6 members
Constructors1
Section titled ConstructorsPostgresDatabaseResource(string, string, PostgresServerResource) A resource that represents a PostgreSQL database. This is a child resource of a
PostgresServerResource. Properties5
Section titled PropertiesConnectionStringExpressiongetReferenceExpression Gets the connection string expression for the Postgres database.
DatabaseNamegetstring Gets the database name.
JdbcConnectionStringgetReferenceExpression Gets the JDBC connection string for the PostgreSQL database.
Parentget Gets the parent PostgresSQL container resource.
UriExpressiongetReferenceExpression Gets the connection URI expression for the PostgreSQL database.