# CommunityToolkit.Aspire.Hosting.SqlDatabaseProjects

- Module: `CommunityToolkit.Aspire.Hosting.SqlDatabaseProjects`
- Version: `13.6.1`
- Import path: `apphost/modules/aspire`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/tree/d9c2addac6f527ef2e33712d290b84574b455a3b)
- Functions: `6`
- Types: `2`

## Handles

- [SqlProjectResource](/reference/api/go/communitytoolkit.aspire.hosting.sqldatabaseprojects/sqlprojectresource.md) -- `handle` - 8 members -- Represents a SQL Server Database project resource.
- [SqlServerDatabaseResource](/reference/api/go/communitytoolkit.aspire.hosting.sqldatabaseprojects/sqlserverdatabaseresource.md) -- `handle` - 0 members

## Functions

- [AddSqlProject](/reference/api/go/communitytoolkit.aspire.hosting.sqldatabaseprojects/addsqlproject.md) -- `method` - on `DistributedApplicationBuilder` -- Adds a SQL Server Database Project resource to the application.
- [WithConnectionReference](/reference/api/go/communitytoolkit.aspire.hosting.sqldatabaseprojects/withconnectionreference.md) -- `method` - on `SqlProjectResource` -- Publishes the SQL Server database project to a connection string resource.
- [WithDacDeployOptions](/reference/api/go/communitytoolkit.aspire.hosting.sqldatabaseprojects/withdacdeployoptions.md) -- `method` - on `SqlProjectResource` -- Sets the publish profile path used for DAC deployment options.
- [WithDacpac](/reference/api/go/communitytoolkit.aspire.hosting.sqldatabaseprojects/withdacpac.md) -- `method` - on `SqlProjectResource` -- Specifies the path to the .dacpac file.
- [WithReference](/reference/api/go/communitytoolkit.aspire.hosting.sqldatabaseprojects/withreference.md) -- `method` - on `SqlProjectResource` -- Publishes the SQL Server database project to a SQL Server database resource.
- [WithSkipWhenDeployed](/reference/api/go/communitytoolkit.aspire.hosting.sqldatabaseprojects/withskipwhendeployed.md) -- `method` - on `SqlProjectResource` -- Specifies that .dacpac deployment should be skipped if metadata in the target database indicates that the .dacpac has already been deployed in its current state.
