Skip to content
Docs Try Aspire

withCreationScript

Function
📦 Aspire.Hosting.SqlServer v13.2.0-preview.1.26159.1
interface SqlServerDatabaseResource {
// ... omitted for brevity
withCreationScript(script: string): SqlServerDatabaseResource;
}

Signature

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

Applies to

This function is an extension method on the following types: