Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithCreationScript

Method
📦 Aspire.Hosting.SqlServer v17.0.0
func (SqlServerDatabaseResource) 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

The resource builder.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types: