[英]How can I change the model without having to delete the database?
If I make any change in the model, now I have to delete and recreate the database. 如果我在模型中进行任何更改,现在我必须删除并重新创建数据库。 What do I resolve?
我该怎么解决?
Make changes in database manually. 手动更改数据库。 Make sure you have
Prevent saving changes that require table re-creation
unchecked in Options under Designers in SQL Server Management Studio 确保在SQL Server Management Studio中的“设计器”下的“选项”下取消选中
Prevent saving changes that require table re-creation
You will need to make the alterations to the database manually. 您需要手动更改数据库。
There are automated tools to help you with reflection such as http://visualstudiogallery.msdn.microsoft.com/df3541c3-d833-4b65-b942-989e7ec74c87 or http://www.huagati.com/dbmltools/ 有一些自动化工具可以帮助您进行反思,例如http://visualstudiogallery.msdn.microsoft.com/df3541c3-d833-4b65-b942-989e7ec74c87或http://www.huagati.com/dbmltools/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.