面向数据库开发人员的 VS:查找表

发布于 2024-08-20 15:04:06 字数 31 浏览 3 评论 0原文

如何处理应被视为“代码”而不是数据的查找表内容?

How to you handle the contents of lookup tables that should be treated as "code" rather than data?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

通知家属抬走 2024-08-27 15:04:06

目前 VS 中没有为数据库开发人员提供良好的管理参考数据的支持。

有一个很好的 MSDN 上的帖子提出了解决此缺失功能的方法,即使用临时表和部署后脚本在部署时合并对参考数据的更改。

本质上,您的参考数据作为临时表中的一组静态插入语句存在,然后合并使活动表保持最新。

在过去五个月左右的时间里,我一直在一个大型的完全 CI 项目中使用该方法,发现它效果很好。

我也祈祷他们会在 VSDB vNext 中为此添加更好的支持。

There is currently no good support in VS for Database Developers for managing reference data.

There is a good post at MSDN that proposes a work around for this missing feature that uses a temp table and a post deployment script to merge changes to the reference data at deployment time.

Essentially your reference data exists as a static set of insert statements into your temp table and then the merge keeps the live tables up to date.

I've been using the approach on a large fully CI project for the last five months or so and found it works well.

I've also got my fingers crossed that they will add better support for this in VSDB vNext.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文