简体   繁体   中英

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

在此输入图像描述

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/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM