![](/img/trans.png)
[英]EF creating another database instead of applying migrations to a existing one
[英]EF Migrations Applying to LocalDB instead of Azure Server DB
使用 VS 控制台和 dotnet cli 添加和更新實體框架遷移不會影響 Azure 服務器數據庫。 更改應用於 localDB。
在 appsettings.json 中正確設置了連接字符串
當同時安裝 Entity Framework Core 和 Entity Framework 6 時,將使用 EF6。 我的設置使用 EFC,所以在 VS 控制台或 dotnet cli 中,我應該使用
EntityFrameworkCore\Update-Database
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.