I happily wrote a product that uses, the Sql Server Database Project and life were good, until we found a problem during the upgrade.
While we create tables, stored procedures, and various other database artifacts, after deployment to clients, they can add their own columns to the tables created by our dacpac.
We use DacFx for deployment (Microsoft.SqlServer.Dac), and we also provide raw dacpac for clients who insist on deploying their DBA.
Although the problem may still be present when using SSMS or similar tools, I am sure that with the “right” code, we must somehow prevent this when deploying through code.
Has anyone had the same problems and possibly found a solution?
Refresh, add a screenshot for deployment options. As you can see in the image, the option "Drop objects entirely, but not in the project" is already disabled.

source
share