Skip to content
DocsTry Aspire
DocsTry

SqlServerDatabaseResource

Handle
📦 Aspire.Hosting.SqlServer v13.4.0
interface SqlServerDatabaseResource
extends IExpressionValue,
IManifestExpressionProvider,
IResource,
IResourceWithConnectionString,
IResourceWithParent,
SqlServerServerResource]],
IValueProvider,
IValueWithReferences {
readonly connectionStringExpression: ReferenceExpression;
readonly databaseName: string;
readonly jdbcConnectionString: ReferenceExpression;
readonly parent: SqlServerServerResource;
readonly uriExpression: ReferenceExpression;
withCreationScript(script: string): SqlServerDatabaseResource;
}

Properties

propertyconnectionStringExpressionReferenceExpressionget
Gets the connection string expression for the SQL Server database.
propertydatabaseNamestringget
Gets the database name.
propertyjdbcConnectionStringReferenceExpressionget
Gets the JDBC connection string for the SQL Server database.
propertyparentSqlServerServerResourceget
Gets the parent SQL Server container resource.
propertyuriExpressionReferenceExpressionget
Gets the connection URI expression for the SQL Server database.

Methods

methodwithCreationScriptbuilder
Defines the SQL script used to create the database.
withCreationScript(script: string): SqlServerDatabaseResource
scriptstring
SqlServerDatabaseResource