扩展属性不在 Visual Studio DB 项目中?
也许是我,希望我错过了一些东西。
我向 MSSQL 2008 数据库中的表和列添加了一些扩展属性。在 Visual Studio 2010 中,我创建了一个新的数据库项目,运行“架构比较”以将数据库加载到我的项目中,但它没有选择扩展属性。
谁能评论我可能做错了什么?
谢谢。
Maybe it's me, hopefully I am missing something.
I added some Extended Properties to tables and columns in my MSSQL 2008 database. In Visual Studio 2010 I created a new database project, ran a "schema comparison" to load the DB into my project, and it didn't pick up the Extended Properties.
Can anyone comment on what I might have done wrong?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我相信在架构比较中默认情况下会忽略扩展属性。您可以通过打开“架构比较选项”对话框、选择“对象类型”选项卡并确保选中“扩展属性”复选框来包含它们。单击“确定”。比较现在应该包括扩展属性。
您还可以通过转到工具 -> 更改随后创建的比较的默认设置。选项->数据库工具->架构比较。这将为您提供与上面相同的对话框。
I believe extended properties are ignored by default in schema comparisons. You can include them by opening the "Schema Compare Options" dialog, select the Object Types tab, and ensure the Extended Properties checkbox is checked. Click OK. The comparison should now include extended properties.
You can also change the default settings for subsequently created comparisons by going to Tools -> Options -> Database Tools -> Schema Compare. That'll give you the same dialog as above.