禁用反序列化数据库项目架构
最近我们开始在 Visual Studio 2010 中使用数据库项目。我向解决方案添加了一个相当大的数据库并导入了所有对象。所有警告均已消除,因此构建良好。
真正让我烦恼的一件事是,当您打开解决方案时,数据库项目将开始加载数据库模式,这需要一些时间(分钟)并使用大量资源。实际上,我无法在加载解决方案后立即开始工作。
除了从解决方案或其他硬件中删除数据库项目之外,还有什么方法可以禁用或更改该行为?
Recently we started working with Database project in Visual Studio 2010. I have added a reasonably large database to the solution and imported all objects. All warnings have been eliminated so it builds fine.
The one thing that really annoys me is that when you open the solution, the database project will start to load the database schema which takes some time (minutes) and uses a lot of resources. Practically I am not able to start working the moment the solution was loaded.
Is there any way to disable or change that behavior other than removing the database project from the solution or other hardware?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
回答我自己的问题:卸载项目。
这样,下次打开解决方案时,它就不会(本地)加载。
如果您需要处理数据库项目,只需加载它,处理它,然后再次卸载它。
Answering my own question: unload the project.
This way it will (locally) not load the next time you open the solution.
If you need to work on the database project, just load it, work on it and unload it again.