ABP(3.x)切换为MySQL
- 在EntityFrameworkCore项目下移除包Microsoft.EntityFrameworkCore.SqlServer
- 在EntityFrameworkCore项目下添加包Pomelo.EntityFrameworkCore.MySql v3.2.4
- 修改xxxDbContextConfigurer中的
- 删除EntityFraweorkCore下面的迁移文件夹
- EntityFraweorkCore和WebHost的appsettings.json
|
"ConnectionStrings": { "Default": "server=127.0.0.1;database=abp;uid=root;pwd=123456;charset=utf8mb4;" }, |
- 添加数据迁移VS菜单:Tools -> NuGet Package Manager -> Package Manager Console运行以下命令:
- Update-Database
- Remove-Migration
from:https://blog.csdn.net/qq_40353040/article/details/108770993