Skip to content
Docs Try Aspire

PostgresDatabaseResource Constructors

Class Constructors 1 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)
{
// ...
}
}
name string The name of the resource.
databaseName string The database name.
postgresParentResource PostgresServerResource The PostgreSQL parent resource associated with this database.