MySQL CodeFirst的配置与注意事项 - 天堂画家 - 博客园mysql+ef的配置相比较mssql+ef来说复杂一些。我的感受就是配置难度在于插件版本造成的各种不兼容问题。另外参考了很多博客,将多个博客里的经验综合才得以实现,因为不是每个人的操作都和那些博客作https://www.cnblogs.com/tthjHiroki/p/8269480.html如果输入 update-database -force时遇到了Incorrect usage of spatial/fulltext/hash index and explicit index order
如果使用的是.NET Core
使用Pomelo.EntityFrameworkCore.MySql
然后在dotnet Cli 输入命令
dotnet ef Migrations add Init