Skip to content
DocsTry Aspire
DocsTry

SqlServerDatabaseResource Constructors

ClassConstructors1 member
A resource that represents a SQL Server database that is a child of a SQL Server container resource.
Constructor(string, string, SqlServerServerResource)Section titled Constructor(string, string, SqlServerServerResource)
A resource that represents a SQL Server database that is a child of a SQL Server container resource.
public class SqlServerDatabaseResource
{
public SqlServerDatabaseResource(
string name,
string databaseName,
SqlServerServerResource parent)
{
// ...
}
}
namestringThe name of the resource.
databaseNamestringThe database name.
parentSqlServerServerResourceThe parent SQL Server server resource.