AzureSqlDatabaseResource
Class net10.0
A resource that represents an Azure SQL database. This is a child resource of an
AzureSqlServerResource. namespace Aspire.Hosting.Azure;
public class AzureSqlDatabaseResource : 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.Azure.AzureSqlServerResource>, Aspire.Hosting.ApplicationModel.IValueProvider, Aspire.Hosting.ApplicationModel.IValueWithReferences{ // ...} ResourceIManifestExpressionProviderIResourceIResourceWithConnectionStringIResourceWithParentIResourceWithParent<AzureSqlServerResource>IValueProviderIValueWithReferences
8 members
Constructors1
Section titled ConstructorsAzureSqlDatabaseResource(string, string, AzureSqlServerResource) A resource that represents an Azure SQL database. This is a child resource of an
AzureSqlServerResource. Properties7
Section titled PropertiesAnnotationsgetResourceAnnotationCollectionConnectionStringExpressiongetReferenceExpression Gets the connection string expression for the Azure SQL database.
DatabaseNamegetstring Gets the database name.
IsContainergetbool Gets a value indicating whether the current resource represents a container. If so the actual resource is not running in Azure.
JdbcConnectionStringgetReferenceExpression Gets the JDBC connection string for the Azure SQL database.
Parentget Gets the parent Azure SQL Database (server) resource.
UriExpressiongetReferenceExpression Gets the connection URI expression for the Azure SQL database.