CommunityToolkit.Aspire.Hosting.SqlDatabaseProjects
📦 CommunityToolkit.Aspire.Hosting.SqlDatabaseProjectsv13.6.1Import path
apphost/modules/aspire6Functions
2Types
2 types, 6 functions and 3 members
Handles
Functions
DistributedApplicationBuilder
SqlProjectResource
method
WithConnectionReferencebuilderPublishes the SQL Server database project to a connection string resource.
WithConnectionReference(target ResourceWithConnectionString) SqlProjectResourcemethod
WithDacDeployOptionsbuilderSets the publish profile path used for DAC deployment options.
WithDacDeployOptions(optionsPath string) SqlProjectResourcemethod
WithDacpacbuilderSpecifies the path to the .dacpac file.
WithDacpac(dacpacPath string) SqlProjectResourcemethod
WithReferencebuilderPublishes the SQL Server database project to a SQL Server database resource.
WithReference(target SqlServerDatabaseResource) SqlProjectResourcemethod
WithSkipWhenDeployedbuilderSpecifies that .dacpac deployment should be skipped if metadata in the target database indicates that the .dacpac has already been deployed in its current state.
WithSkipWhenDeployed() SqlProjectResource