Skip to content
DocsTry Aspire
DocsTry

PostgresDatabaseResource Constructors

ClassConstructors1 member
A resource that represents a PostgreSQL database. This is a child resource of a PostgresServerResource.
Constructor(string, string, PostgresServerResource)Section titled Constructor(string, string, PostgresServerResource)
A resource that represents a PostgreSQL database. This is a child resource of a PostgresServerResource.
public class PostgresDatabaseResource
{
public PostgresDatabaseResource(
string name,
string databaseName,
PostgresServerResource postgresParentResource)
{
// ...
}
}
namestringThe name of the resource.
databaseNamestringThe database name.
postgresParentResourcePostgresServerResourceThe PostgreSQL parent resource associated with this database.