![](/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.