ABP框架中,修改数据库链接类型时,官方文档中说明了要把UseSqlServer改为UseMySql,出现以下情况
解决方法如下
var builder = new DbContextOptionsBuilder<BookStoreDbContext>()
.UseMySql(configuration.GetConnectionString("Default"), new MySqlServerVersion(new Version(5, 7, 19)));
ABP框架中,修改数据库链接类型时,官方文档中说明了要把UseSqlServer改为UseMySql,出现以下情况
解决方法如下
var builder = new DbContextOptionsBuilder<BookStoreDbContext>()
.UseMySql(configuration.GetConnectionString("Default"), new MySqlServerVersion(new Version(5, 7, 19)));