DacFx provisioning support #1696
Replies: 3 comments 1 reply
-
From the DacFx side, we're interested in helping folks deploy the database changes within their Aspire host's configuration! Should you need anything from DacFx (or Microsoft.Build.Sql), please don't hesitate to flag us down over on https://github.com/microsoft/DacFx in case I miss a notification here. |
Beta Was this translation helpful? Give feedback.
-
It would be greate to have this feature. I am a DB first believer |
Beta Was this translation helpful? Give feedback.
-
We are working on something similar for |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I played with DacFx support yesterday, and wondered if a pull request would be of interest? If not, are there plans for a
aspire-contrib
repo/organization, where a curated set of extensions and and components could live?Context:
https://x.com/bjorkstromm/status/1747749746272288877?s=20
High-level functionality:
dacpac
using Aspire, example codeAddDacFxProvisioning()
registers a lifecycle hook with a dac provisioner, that will start dacpac deployments after endpoints are allocated.WithDacPackage<T>()
).Utilizing Microsoft.Build.Sql we can get the dacpac directly via project reference in the AppHost. In order to get the output path, I needed to modify the
CreateServiceMetadataSources
target to also include OutputPath. Adding support for pointing at the dacpac-file directly should also be considered.Beta Was this translation helpful? Give feedback.
All reactions