簡體   English   中英

如何在不刪除數據庫的情況下更改模型?

[英]How can I change the model without having to delete the database?

如果我在模型中進行任何更改,現在我必須刪除並重新創建數據庫。 我該怎么解決?

手動更改數據庫。 確保在SQL Server Management Studio中的“設計器”下的“選項”下取消選中Prevent saving changes that require table re-creation

在此輸入圖像描述

您需要手動更改數據庫。

有一些自動化工具可以幫助您進行反思,例如http://visualstudiogallery.msdn.microsoft.com/df3541c3-d833-4b65-b942-989e7ec74c87http://www.huagati.com/dbmltools/

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM