EF6 迁移错误 :The underlying provider does not support the type ‘nvarchar(max)‘.

问题1:

报错:Mysql 创建前以文件报错==> The underlying provider does not support the type 'nvarchar(max)'.

背景:之前有在mysql与Sql Server数据库之间进行切换,可能导致一些问题

解决:删除全部迁移文件和数据库,重新创建迁移文件和数据库(执行一遍add-migration InitialCreate  和 update-database)