在 VS 2019 数据库项目中发布 DB 时如何避免删除架构
从 Visual Studio 发布数据库时,有多个选项可以“不删除”对象(如果该对象不在源中)。然而,似乎没有办法避免删除模式。有谁知道这是否可以实现,或者我是否必须手动编辑发布脚本?
When publishing a database from Visual Studio, there are several options to "do not drop" an object if it is not in the Source. However, it seems that there is no option to avoid dropping schemas. Do anyone know if this is possible to achieve, or do I have to manually edit the publish script?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将架构添加到项目中可能是最简单的。该脚本很简单,我们使用:
(另外,我希望我早点看到这个问题,希望这对某人有帮助还不算太晚。)
It would probably be simplest just to add the schema to the project. The script would be simple enough, we use:
(Also, I wish I'd seen this question much earlier, hopefully this isn't too late to help someone.)