withCreationScript

Method
📦 Aspire.Hosting.SqlServer v17.0.0
interface SqlServerDatabaseResource {
// ... omitted for brevity
withCreationScript(script: string): SqlServerDatabaseResource;
}

Signature

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

Applies to

This method applies to the following types: