Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithConnectionReference

Method
📦 CommunityToolkit.Aspire.Hosting.SqlDatabaseProjects v13.6.1
func (SqlProjectResource) WithConnectionReference(target ResourceWithConnectionString) SqlProjectResource

Signature

methodWithConnectionReferencebuilder
Publishes the SQL Server database project to a connection string resource.
WithConnectionReference(target ResourceWithConnectionString) SqlProjectResource
targetResourceWithConnectionStringAn IResourceBuilder representing the target IResourceWithConnectionString to publish the SQL Server Database project to.
SqlProjectResource

An IResourceBuilder that can be used to further customize the resource.

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

Applies to

This method applies to the following types: