Skip to content

Commit

Permalink
Update hosting-sql-database-projects.md
Browse files Browse the repository at this point in the history
Documentation for new WithConfigureDacDeployOptions extension. Related to issue CommunityToolkit/Aspire#282 and PR CommunityToolkit/Aspire#286
  • Loading branch information
nnitkasw authored Nov 29, 2024
1 parent 8d68a22 commit f02c6aa
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/community-toolkit/hosting-sql-database-projects.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,23 @@ builder.AddSqlProject("mysqlproj")
.WithReference(sql);
```

### Deployment options support

Define options that affect the behavior of package deployment.

```csharp
var builder = DistributedApplication.CreateBuilder(args);

var sql = builder.AddSqlServer("sql")
.AddDatabase("test");

builder.AddSqlProject("mysqlproj")
.WithConfigureDacDeployOptions(options => options.IncludeCompositeObjects = true)
.WithReference(sql);

builder.Build().Run();
```

### Redeploy support

If you make changes to your SQL Database project while the app host is running, you can use the `Redeploy` custom action on the .NET Aspire dashboard to redeploy your updates without having to restart the app host.
Expand Down

0 comments on commit f02c6aa

Please sign in to comment.