Skip to content
Docs Try Aspire

SqlServerDatabaseResource

Handle TypeScript
📦 Aspire.Hosting.Azure.Sql v13.2.0-preview.1.26159.1
interface SqlServerDatabaseResource
extends IManifestExpressionProvider,
IResource,
IResourceWithConnectionString,
IResourceWithParent,
0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51]],
IValueProvider,
IValueWithReferences {
readonly connectionStringExpression: ReferenceExpression;
readonly databaseName: string;
readonly jdbcConnectionString: ReferenceExpression;
readonly name: string;
readonly parent: SqlServerServerResource;
readonly uriExpression: ReferenceExpression;
withCreationScript(script: string): SqlServerDatabaseResource;
}

Properties

property connectionStringExpression ReferenceExpression get
Gets the ConnectionStringExpression property
property databaseName string get
Gets the DatabaseName property
property jdbcConnectionString ReferenceExpression get
Gets the JdbcConnectionString property
property name string get
Gets the Name property
property parent SqlServerServerResource get
Gets the Parent property
property uriExpression ReferenceExpression get
Gets the UriExpression property

Methods

method withCreationScript builder
Defines the SQL script used to create the database
withCreationScript(script: string): SqlServerDatabaseResource
script string
SqlServerDatabaseResource