SqlProjectResource.WithConnectionReference

Method
📦 CommunityToolkit.Aspire.Hosting.SqlDatabaseProjects v13.6.1
type SqlProjectResource interface {
// ... omitted for brevity
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().

Defined on

This method is defined on the following type: