question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support composite database projects

See original GitHub issue

This issue is a rough idea for reverse engineering a database context from a composite database project.

A composite database project is the aggregate of multiple, smaller and reusable DACPACs. For example, a shared DACPAC contains a table called User, which is used accross multiple applications that access the same database. Instead of defining the table User in every application’s database project, the table is provided in the DACPAC. This DACPAC gets referenced by the application database projects.

When reverse engineering the composite application database project, I’d like to include the User table from the shared DACPAC in the same data context.


The only way to do this right now is to deploy the composite database project with all dependencies to a database, and reverse engineer from there.

With this issue, I’d like to suggest to “somehow” skip this deployment step, and directly create a composite database context from the composite database project.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:32 (31 by maintainers)

github_iconTop GitHub Comments

1reaction
ErikEJcommented, Apr 7, 2020

@Herdo OK, I think I finally figured it out:

Create a method in SqlServerDacpacdatabaseModelFactory = dacpacPath = TryGetReferences(dacpacPath);

1: Recursively look for any external references using https://github.com/GoEddie/Dacpac-References code

2: If there are any, merge all references into a new temporary master (a copy of the selected dacpac), using https://github.com/GoEddie/DacpacMerge code and return new name ortherwise just return original name

0reactions
ErikEJcommented, Apr 16, 2020

Thanks, otherwise I would need a folder with .dacpac files from you! 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to set up an SSDT database project for customization?
For the general solutions, I have SSDT database projects in place. ... then you can deploy them at the same time as a...
Read more >
DevOps series : Composite projects in Visual Studio SSDT
The main story is that objects (View, Stored procedures) of databases are shared between teams). This introduces an extra complication when ...
Read more >
Composite Projects and Schema Compare
Using a composite project allows a large database to be broken down into more manageable chunks, allows different people or teams to have ......
Read more >
SSDT Composite Database Reference with PostDeploy
I have two SSDT projects. Database1 references Database2. Database projects. When deploying Database1, Table2 (from Database2) is deployed as ...
Read more >
Composite projects - Support
Is it possible to have a common database across all sub-projects? I want to use customer from customers subproject in orders subproject, in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found