Skip to content
Docs Try Aspire

AzureSqlDatabaseResource Properties

Class Properties 7 members
A resource that represents an Azure SQL database. This is a child resource of an AzureSqlServerResource.
Annotations Section titled Annotations override ResourceAnnotationCollection
public override ResourceAnnotationCollection Annotations { get; }
ConnectionStringExpression Section titled ConnectionStringExpression ReferenceExpression
Gets the connection string expression for the Azure SQL database.
public ReferenceExpression ConnectionStringExpression { get; }
DatabaseName Section titled DatabaseName string
Gets the database name.
public string DatabaseName { get; }
Gets a value indicating whether the current resource represents a container. If so the actual resource is not running in Azure.
public bool IsContainer { get; }
JdbcConnectionString Section titled JdbcConnectionString ReferenceExpression
Gets the JDBC connection string for the Azure SQL database.
public ReferenceExpression JdbcConnectionString { get; }
Format: jdbc:sqlserver://{host}:{port};database={database};encrypt=true;trustServerCertificate=false. When running in a container, inherits the container JDBC format including username and password.
Gets the parent Azure SQL Database (server) resource.
public AzureSqlServerResource Parent { get; }
UriExpression Section titled UriExpression ReferenceExpression
Gets the connection URI expression for the Azure SQL database.
public ReferenceExpression UriExpression { get; }
Format: mssql://{host}:{port}/{database}.